Lines Matching refs:w_cursor
1306 lnum = wp->w_cursor.lnum; in spell_move_to()
1356 && lnum == wp->w_cursor.lnum in spell_move_to()
1358 && (colnr_T)(p - buf) >= wp->w_cursor.col) in spell_move_to()
1373 || lnum != wp->w_cursor.lnum in spell_move_to()
1374 || (lnum == wp->w_cursor.lnum in spell_move_to()
1378 > wp->w_cursor.col))) in spell_move_to()
1402 wp->w_cursor = found_pos; in spell_move_to()
1428 wp->w_cursor = found_pos; in spell_move_to()
1438 if (lnum == wp->w_cursor.lnum && wrapped) in spell_move_to()
1477 if (lnum == wp->w_cursor.lnum && !found_one) in spell_move_to()
2874 pos_T pos = curwin->w_cursor; in ex_spellrepall()
2897 curwin->w_cursor.lnum = 0; in ex_spellrepall()
2907 if (addlen <= 0 || STRNCMP(line + curwin->w_cursor.col, in ex_spellrepall()
2913 mch_memmove(p, line, curwin->w_cursor.col); in ex_spellrepall()
2914 STRCPY(p + curwin->w_cursor.col, repl_to); in ex_spellrepall()
2915 STRCAT(p, line + curwin->w_cursor.col + STRLEN(repl_from)); in ex_spellrepall()
2916 ml_replace(curwin->w_cursor.lnum, p, FALSE); in ex_spellrepall()
2917 changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); in ex_spellrepall()
2919 if (curwin->w_cursor.lnum != prev_lnum) in ex_spellrepall()
2922 prev_lnum = curwin->w_cursor.lnum; in ex_spellrepall()
2926 curwin->w_cursor.col += (colnr_T)STRLEN(repl_to); in ex_spellrepall()
2930 curwin->w_cursor = pos; in ex_spellrepall()
4320 spell_expand_need_cap = check_need_cap(curwin->w_cursor.lnum, col); in spell_expand_check_cap()