Friday, June 1, 2018

Re: First line starting with space affects cursor position when switching buffers

On Friday, 1 June 2018 12:22:05 UTC-5, Andy Wokula wrote:
> Am 01.06.2018 um 08:25 schrieb dmccooey@comcast.net:
> > Hello,
> >
> > I have encountered what appears to be a bug in vim,
> > but it might be a feature that I would like to disable.
> >
> > To reproduce the problem:
> >
> > Use vim to create a new file, and add 10 or so lines of text to the file.
> > In the first line, put at least two characters, and make sure the first character is a space or tab.
> > Place the cursor on the last line (or any line other than the first line).
> > Save the file (:w) and switch (:e) to view another file.
> > Switch back (:e) to the original file.
> > Notice that the cursor is on the first line, not where it was originally.
> >
> > I am using vim 8.0 for Mac.
> >
> > Dave McCooey
>
> I've seen this too for a long time (before v8.0), but didn't bother to investigate ...
> It's easy to "fix": just don't start the first line with whitespace.
>
> Ok, I did some bisecting (first time ^^):
>
> gvim-v7-4-674.exe (and earlier) works ok
> gvim-v7-4-675.exe (and later) shows the bug
>
> Someone should take a look at Patch 7.4.675
>
> --
> Andy

This must be it.
I can confirm that 7.3 (for Mac) works ok.

Dave

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: