That is the expected value for "move the cursor to the end of the line 
regardless how long the line is". Not a bug

> Am 01.06.2019 um 01:51 schrieb mg979 (Vim Github Repository) 
> <[email protected]>:
> 
> Describe the bug
> getcurpos()[4] (curswant) returns 2147483647 after $ motion
> 
> To Reproduce
> Detailed steps to reproduce the behavior:
> 
> Run vim --clean (or gvim --clean, etc.)
> Edit any file
> Type
> :au CursorMoved * echo getcurpos()[4]
> then motion $ on a line with text.
> 
> Describe the error
> getcurpos()[4] returns 2147483647, and that is shown in the command line.
> This means curswant is actually set to that value, and pressing j or k after 
> that still shows that value.
> It doesn't happen if the motion is done when already at last character in the 
> line.
> Expected behavior
> a value == virtcol("$") I guess?
> 
> Environment (please complete the following information):
> 
> Vim version [e.g. 8.1.1408] (bug is present also in vim 8.0)
> OS: debian stretch
> Terminal: xfce4-terminal
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> 
> -- 
> -- 
> 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].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/4464%40github.com.
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/F0C51091-AC7A-4E4F-8776-503E66CB74C3%40256bit.org.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui