Mercurial > vim
comparison src/ex_docmd.c @ 5645:4e3a9dd25d42 v7.4.169
updated for version 7.4.169
Problem: ":sleep" puts cursor in the wrong column. (Liang Li)
Solution: Add the window offset. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 05 Feb 2014 22:46:52 +0100 |
parents | c8c80c9d2e22 |
children | 0ace3a24c2a0 |
comparison
equal
deleted
inserted
replaced
5644:c5d1976996a3 | 5645:4e3a9dd25d42 |
---|---|
8369 | 8369 |
8370 if (cursor_valid()) | 8370 if (cursor_valid()) |
8371 { | 8371 { |
8372 n = W_WINROW(curwin) + curwin->w_wrow - msg_scrolled; | 8372 n = W_WINROW(curwin) + curwin->w_wrow - msg_scrolled; |
8373 if (n >= 0) | 8373 if (n >= 0) |
8374 windgoto((int)n, curwin->w_wcol); | 8374 windgoto((int)n, W_WINCOL(curwin) + curwin->w_wcol); |
8375 } | 8375 } |
8376 | 8376 |
8377 len = eap->line2; | 8377 len = eap->line2; |
8378 switch (*eap->arg) | 8378 switch (*eap->arg) |
8379 { | 8379 { |