Lines Matching refs:w_cursor
163 save_curpos = curwin->w_cursor; in ex_align()
187 for (curwin->w_cursor.lnum = eap->line1; in ex_align()
188 curwin->w_cursor.lnum <= eap->line2; ++curwin->w_cursor.lnum) in ex_align()
236 curwin->w_cursor = save_curpos; in ex_align()
658 curwin->w_cursor.lnum = eap->line1; in ex_sort()
701 curwin->w_cursor.lnum = dest; in do_move()
703 curwin->w_cursor.lnum = dest + (line2 - line1) + 1; in do_move()
797 curwin->w_cursor.lnum = dest; in do_move()
799 curwin->w_cursor.lnum = dest + (line2 - line1) + 1; in do_move()
846 curwin->w_cursor.lnum = n; in ex_copy()
854 ml_append(curwin->w_cursor.lnum, p, (colnr_T)0, FALSE); in ex_copy()
859 line1 = curwin->w_cursor.lnum; in ex_copy()
861 if (curwin->w_cursor.lnum < line1) in ex_copy()
863 if (curwin->w_cursor.lnum < line2) in ex_copy()
865 ++curwin->w_cursor.lnum; in ex_copy()
1084 cursor_save = curwin->w_cursor; in do_filter()
1086 curwin->w_cursor.lnum = line1; in do_filter()
1087 curwin->w_cursor.col = 0; in do_filter()
1117 curwin->w_cursor.lnum = line2; in do_filter()
1133 curwin->w_cursor.lnum = line2; in do_filter()
1245 curbuf->b_op_end.lnum = curwin->w_cursor.lnum; in do_filter()
1281 curwin->w_cursor.lnum = line1; in do_filter()
1297 curwin->w_cursor.lnum = curbuf->b_op_end.lnum; in do_filter()
1321 curwin->w_cursor = cursor_save; in do_filter()
1788 buf = buflist_new(fname, xfname, curwin->w_cursor.lnum, 0); in rename_buffer()
2435 curwin->w_cursor.lnum = lnum; in getfile()
2922 newlnum = curwin->w_cursor.lnum; in do_ecmd()
2923 solcol = curwin->w_cursor.col; in do_ecmd()
3018 orig_pos = curwin->w_cursor; in do_ecmd()
3068 if (!EQUAL_POS(curwin->w_cursor, orig_pos)) in do_ecmd()
3072 if (curwin->w_cursor.lnum != orig_pos.lnum in do_ecmd()
3073 || curwin->w_cursor.col != (int)(skipwhite(text) - text)) in do_ecmd()
3075 newlnum = curwin->w_cursor.lnum; in do_ecmd()
3076 newcol = curwin->w_cursor.col; in do_ecmd()
3116 curwin->w_cursor.lnum = newlnum; in do_ecmd()
3117 curwin->w_cursor.col = newcol; in do_ecmd()
3122 curwin->w_cursor.lnum = newlnum; in do_ecmd()
3127 curwin->w_cursor.col = solcol; in do_ecmd()
3129 curwin->w_cursor.coladd = 0; in do_ecmd()
3138 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in do_ecmd()
3394 curwin->w_cursor.lnum = lnum; in ex_append()
3564 if (curwin->w_cursor.lnum != curs) in ex_z()
3566 curwin->w_cursor.lnum = curs; in ex_z()
3567 curwin->w_cursor.col = 0; in ex_z()
3705 pos_T old_cursor = curwin->w_cursor; in ex_substitute()
3821 curwin->w_cursor.lnum = eap->line1; in ex_substitute()
4115 curwin->w_cursor.lnum = lnum; in ex_substitute()
4182 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4204 getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL); in ex_substitute()
4205 curwin->w_cursor.col = regmatch.endpos[0].col - 1; in ex_substitute()
4206 if (curwin->w_cursor.col < 0) in ex_substitute()
4207 curwin->w_cursor.col = 0; in ex_substitute()
4208 getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec); in ex_substitute()
4209 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4271 curwin->w_cursor.col += len_change; in ex_substitute()
4385 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4515 curwin->w_cursor.col = 0; in ex_substitute()
4593 ++curwin->w_cursor.lnum; in ex_substitute()
4744 curwin->w_cursor = old_cursor; in ex_substitute()
4772 print_line(curwin->w_cursor.lnum, in ex_substitute()
4856 curwin->w_cursor.lnum = lnum; in global_exe_one()
4857 curwin->w_cursor.col = 0; in global_exe_one()
4964 lnum = curwin->w_cursor.lnum; in ex_global()