0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0139

This commit is contained in:
Bram Moolenaar
2005-08-30 21:55:26 +00:00
parent ac6e65f88d
commit da2303d96b
26 changed files with 915 additions and 369 deletions

View File

@@ -4678,6 +4678,18 @@ dozet:
== FAIL)
return;
# endif
if (ptr == NULL)
{
pos_T pos = curwin->w_cursor;
int attr;
/* Find bad word under the cursor. */
len = spell_move_to(curwin, FORWARD, TRUE, TRUE, &attr);
if (len != 0 && curwin->w_cursor.col <= pos.col)
ptr = ml_get_pos(&curwin->w_cursor);
curwin->w_cursor = pos;
}
if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
FIND_IDENT)) == 0)
return;