# HG changeset patch # User Bram Moolenaar # Date 1391636812 -3600 # Node ID 4e3a9dd25d428e7c08ed401afc244972e27e08e6 # Parent c5d1976996a35abd2eea04f6e009749f5757da88 updated for version 7.4.169 Problem: ":sleep" puts cursor in the wrong column. (Liang Li) Solution: Add the window offset. (Christian Brabandt) diff --git a/src/ex_docmd.c b/src/ex_docmd.c --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8371,7 +8371,7 @@ ex_sleep(eap) { 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 169, +/**/ 168, /**/ 167,