mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 12:08:33 +00:00
vim-patch:7.4.169
Problem: ":sleep" puts cursor in the wrong column. (Liang Li) Solution: Add the window offset. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=4e3a9dd25d428e7c08ed401afc244972e27e08e6
This commit is contained in:

committed by
Thiago de Arruda

parent
b83600f5a3
commit
3fe0580a8e
@@ -6708,7 +6708,7 @@ static void ex_sleep(exarg_T *eap)
|
||||
if (cursor_valid()) {
|
||||
n = W_WINROW(curwin) + curwin->w_wrow - msg_scrolled;
|
||||
if (n >= 0)
|
||||
windgoto((int)n, curwin->w_wcol);
|
||||
windgoto((int)n, W_WINCOL(curwin) + curwin->w_wcol);
|
||||
}
|
||||
|
||||
len = eap->line2;
|
||||
|
Reference in New Issue
Block a user