vim-patch:7.4.440 #1244

Problem:  Omni complete popup drawn incorrectly.
Solution: Call validate_cursor() instead of check_cursor(). (Hirohito
          Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-440
This commit is contained in:
Naveen Kumar Molleti
2014-09-27 00:46:30 +05:30
committed by Justin M. Keyes
parent af40647b66
commit 0a2d9fa8c8
2 changed files with 3 additions and 3 deletions

View File

@@ -3302,7 +3302,7 @@ expand_by_function (
goto theend; goto theend;
} }
curwin->w_cursor = pos; /* restore the cursor position */ curwin->w_cursor = pos; /* restore the cursor position */
check_cursor(); validate_cursor();
if (!equalpos(curwin->w_cursor, pos)) { if (!equalpos(curwin->w_cursor, pos)) {
EMSG(_(e_compldel)); EMSG(_(e_compldel));
goto theend; goto theend;
@@ -4369,7 +4369,7 @@ static int ins_complete(int c)
return FAIL; return FAIL;
} }
curwin->w_cursor = pos; /* restore the cursor position */ curwin->w_cursor = pos; /* restore the cursor position */
check_cursor(); validate_cursor();
if (!equalpos(curwin->w_cursor, pos)) { if (!equalpos(curwin->w_cursor, pos)) {
EMSG(_(e_compldel)); EMSG(_(e_compldel));
return FAIL; return FAIL;

View File

@@ -192,7 +192,7 @@ static int included_patches[] = {
//443, //443,
//442, //442,
//441, //441,
//440, 440,
439, 439,
//438, //438,
//437, //437,