Lines Matching refs:col
27 change_warning(int col) in change_warning() argument
46 msg_col = col; in change_warning()
200 colnr_T col, in may_record_change() argument
229 dict_add_number(dict, "col", (varnumber_T)col + 1); in may_record_change()
467 colnr_T col, in changed_common() argument
484 may_record_change(lnum, col, lnume, xtra); in changed_common()
495 curbuf->b_last_change.col = col; in changed_common()
517 add = (p->col + cols < col || col + cols < p->col); in changed_common()
598 else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col) in changed_common()
707 changed_bytes(linenr_T lnum, colnr_T col) in changed_bytes() argument
710 changed_common(lnum, col, lnum + 1, 0L); in changed_bytes()
736 inserted_bytes(linenr_T lnum, colnr_T col, int added UNUSED) in inserted_bytes() argument
740 adjust_prop_columns(lnum, col, added, 0); in inserted_bytes()
743 changed_bytes(lnum, col); in inserted_bytes()
848 colnr_T col, // column in first line with change in changed_lines() argument
875 changed_common(lnum, col, lnume, xtra); in changed_lines()
1024 colnr_T col; in ins_char_bytes() local
1032 col = curwin->w_cursor.col; in ins_char_bytes()
1061 while (oldp[col + oldlen] != NUL && vcol < new_vcol) in ins_char_bytes()
1063 vcol += chartabsize(oldp + col + oldlen, vcol); in ins_char_bytes()
1066 if (vcol > new_vcol && oldp[col + oldlen] == TAB) in ins_char_bytes()
1068 oldlen += (*mb_ptr2len)(oldp + col + oldlen); in ins_char_bytes()
1075 else if (oldp[col] != NUL) in ins_char_bytes()
1078 oldlen = (*mb_ptr2len)(oldp + col); in ins_char_bytes()
1090 i += replace_push_mb(oldp + col + i) - 1; in ins_char_bytes()
1092 replace_push(oldp[col + i]); in ins_char_bytes()
1101 if (col > 0) in ins_char_bytes()
1102 mch_memmove(newp, oldp, (size_t)col); in ins_char_bytes()
1105 p = newp + col; in ins_char_bytes()
1106 if (linelen > col + oldlen) in ins_char_bytes()
1107 mch_memmove(p + newlen, oldp + col + oldlen, in ins_char_bytes()
1108 (size_t)(linelen - col - oldlen)); in ins_char_bytes()
1122 inserted_bytes(lnum, col, newlen - oldlen); in ins_char_bytes()
1141 curwin->w_cursor.col += charlen; in ins_char_bytes()
1158 colnr_T col; in ins_str() local
1164 col = curwin->w_cursor.col; in ins_str()
1171 if (col > 0) in ins_str()
1172 mch_memmove(newp, oldp, (size_t)col); in ins_str()
1173 mch_memmove(newp + col, s, (size_t)newlen); in ins_str()
1174 mch_memmove(newp + col + newlen, oldp + col, (size_t)(oldlen - col + 1)); in ins_str()
1176 inserted_bytes(lnum, col, newlen); in ins_str()
1177 curwin->w_cursor.col += newlen; in ins_str()
1239 colnr_T col = curwin->w_cursor.col; in del_bytes() local
1248 if (col >= oldlen) in del_bytes()
1265 && utfc_ptr2len(oldp + col) >= count) in del_bytes()
1270 (void)utfc_ptr2char(oldp + col, cc); in del_bytes()
1274 n = col; in del_bytes()
1277 col = n; in del_bytes()
1280 } while (UTF_COMPOSINGLIKE(oldp + col, oldp + n)); in del_bytes()
1286 movelen = (long)oldlen - (long)col - count + 1; // includes trailing NUL in del_bytes()
1292 if (col > 0 && fixpos && restart_edit == 0 in del_bytes()
1295 --curwin->w_cursor.col; in del_bytes()
1298 curwin->w_cursor.col -= in del_bytes()
1299 (*mb_head_off)(oldp, oldp + curwin->w_cursor.col); in del_bytes()
1301 count = oldlen - col; in del_bytes()
1324 mch_memmove(newp, oldp, (size_t)col); in del_bytes()
1326 mch_memmove(newp + col, oldp + col + count, (size_t)movelen); in del_bytes()
1341 inserted_bytes(lnum, col, -count); in del_bytes()
1437 p = saved_line + curwin->w_cursor.col; in open_line()
1445 saved_line[curwin->w_cursor.col] = NUL; in open_line()
1450 p_extra = saved_line + curwin->w_cursor.col; in open_line()
1545 curwin->w_cursor.col = (colnr_T)(p - ptr); in open_line()
1579 curwin->w_cursor.col = (colnr_T)(p - ptr); in open_line()
1733 && (int)curwin->w_cursor.col == lead_len) in open_line()
2026 curwin->w_cursor.col = (colnr_T)(comment_end - saved_line); in open_line()
2119 curwin->w_cursor.col + 1, 0); in open_line()
2168 less_cols -= curwin->w_cursor.col; in open_line()
2170 ai_col = curwin->w_cursor.col; in open_line()
2175 for (n = 0; n < (int)curwin->w_cursor.col; ++n) in open_line()
2177 newcol += curwin->w_cursor.col; in open_line()
2197 saved_line[curwin->w_cursor.col] = NUL; in open_line()
2205 changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, in open_line()
2212 curwin->w_cursor.col + less_cols_off, in open_line()
2216 changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); in open_line()
2226 curwin->w_cursor.col = newcol; in open_line()
2287 curwin->w_cursor.col = 0; in open_line()
2315 colnr_T col = curwin->w_cursor.col; in truncate_line() local
2317 if (col == 0) in truncate_line()
2320 newp = vim_strnsave(ml_get(lnum), col); in truncate_line()
2328 changed_bytes(lnum, curwin->w_cursor.col); in truncate_line()
2331 if (fixpos && curwin->w_cursor.col > 0) in truncate_line()
2332 --curwin->w_cursor.col; in truncate_line()
2369 curwin->w_cursor.col = 0; in del_lines()