On Sun, Dec 16, 2018 at 12:14 PM Yegappan Lakshmanan <[email protected]>
wrote:

> Hi Tony,
>
> On Sat, Dec 15, 2018 at 5:26 PM Tony Mechelynck
> <[email protected]> wrote:
> >
> > On Sun, Dec 16, 2018 at 1:59 AM Yegappan Lakshmanan <[email protected]>
> wrote:
> > >
> > > Hi all,
> > >
> > > I am seeing that the cursor is displayed at an incorrect column
> > > if I do the following (using the latest version of Vim on Mac):
> > >
> > > 1. Add an empty line to a buffer with a tab character followed by
> > >     a space at the beginning of the line.
> > --- I assume you mean a new line, not an empty line (a tab and a space
> > are not "empty").
> >
>
> Yes. I meant add the tab character and the space character in a new line.
>
> >
> > > 2. Move the cursor to the end of this line.
> > > 3. Press v to start visual mode
> > > 4. Press o to jump to the other end of the visual selection
> > --- the cursor doesn't move, since only the space is visually selected
> > > 5. Extend the visual selection to the beginning of the line by
> pressing h
> > --- the cursor moves to the tab, i.e. to the beginning of the line.
> > Since in my Vim, 'selection' is set to "inclusive", both the tab and
> > the space are visually selected.
> > > 6. Press escape to cancel the visual selection
> > --- the cursor remains at the beginning of the line.
> > >
> > > After this the cursor is positioned at the beginning of the line (it
> should
> > > be positioned after the tab at column 8).
> > Why do you think that pressing <Esc> should move the cursor? IMHO the
> > cursor is and should be at the beginning of the line.
> >
>
> Because you cannot position the cursor at the beginning of the line
> using any other Vim command. I am guessing that we are missing
> a cursor validation check in the code somewhere.
>
> Regards,
> Yegappan
>
> > >
> > > Anyone else able to reproduce this?
> > Yes, I can, but I don't regard it as faulty, see above.
> > >
> > > - Yegappan
>

With 8.1.600 on macOS 10.11.6 (El Capitan), I confirm that the behavior
Yegappan reported takes place against Terminal.app and iTerm2, while all of
the GUI's running on XQuarz (= X11 for macOS), i.e., those using Athena,
Motif, and GTK+ 2 and 3, don't

Also, it might be worth noting that El Capitan's default Vim is 7.3, and
that the old Vim showed the same behavior.


> --
> --
> You received this message from the "vim_dev" 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_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui