Mercurial > vim
changeset 1534:bdfbf8ef447a v7.1.249
updated for version 7.1-249
author | vimboss |
---|---|
date | Wed, 13 Feb 2008 14:21:38 +0000 |
parents | 8abc0abf8cbd |
children | eb0504d00480 |
files | src/undo.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -1814,13 +1814,14 @@ u_undoline() if (undo_off) return; - if (curbuf->b_u_line_ptr == NULL || - curbuf->b_u_line_lnum > curbuf->b_ml.ml_line_count) + if (curbuf->b_u_line_ptr == NULL + || curbuf->b_u_line_lnum > curbuf->b_ml.ml_line_count) { beep_flush(); return; } - /* first save the line for the 'u' command */ + + /* first save the line for the 'u' command */ if (u_savecommon(curbuf->b_u_line_lnum - 1, curbuf->b_u_line_lnum + 1, (linenr_T)0) == FAIL) return; @@ -1840,6 +1841,7 @@ u_undoline() curbuf->b_u_line_colnr = curwin->w_cursor.col; curwin->w_cursor.col = t; curwin->w_cursor.lnum = curbuf->b_u_line_lnum; + check_cursor_col(); } /*