[patch] Incorrectly recalculated cursor position

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[patch] Incorrectly recalculated cursor position

Lech Lorens
How to reproduce:
- go to directory with Vim sources,
- build C tags for Vim sources,
- start Vim:
$ vim -c 'set number lines=24 columns=80' \
      -c 531 -c 'normal 20|'              \
      -c 'exe "normal \<C-w>\<C-]>"'      \
      -O syntax.c syntax.c
- move the current window to the top:
:wincmd K

The cursor is displayed on line 804 of structs.h, while it should be
displayed on line 802.

Analogically, moving a window in the horizontal direction:
$ vim -c 'set number lines=24 columns=80' \
      -c 531 -c 'normal 20|'              \
      -c 'exe "normal \<C-w>\<C-]>"'      \
      syntax.c
:wincmd L

The cursor is displayed on line 799, while it should remain on line 802.

--
Cheers,
Lech

--
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

wrong-cursor-position.patch (2K) Download Attachment