diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-11-23 22:06:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 22:06:43 +0100 |
commit | 61d2a12743bcefbdd661b446b0b0fea7a1f77b17 (patch) | |
tree | 9b49db7bd3bc7163ad9b0a49828cea4b774f3e0d /src/nvim/edit.c | |
parent | d5f14b8372b3c8d441187eea659156534cb4c9ba (diff) | |
parent | 7d5988feeee275f0ae25e753dcb1d2e1954cd4ac (diff) | |
download | rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.gz rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.bz2 rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.zip |
Merge pull request #11382 from bfredl/extmark_bufhl
use extmark adjustment for bufhl. use vim code for within-line adjustments.
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index cd0f3f4b9d..eecea03a19 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -5600,9 +5600,6 @@ insertchar ( do_digraph(buf[i-1]); /* may be the start of a digraph */ buf[i] = NUL; ins_str(buf); - extmark_col_adjust(curbuf, curwin->w_cursor.lnum, - (colnr_T)(curwin->w_cursor.col + 1), 0, - (long)STRLEN(buf), kExtmarkUndo); if (flags & INSCHAR_CTRLV) { redo_literal(*buf); i = 1; @@ -5613,9 +5610,6 @@ insertchar ( } else { int cc; - extmark_col_adjust(curbuf, curwin->w_cursor.lnum, - (colnr_T)(curwin->w_cursor.col + 1), 0, - 1, kExtmarkUndo); if ((cc = utf_char2len(c)) > 1) { char_u buf[MB_MAXBYTES + 1]; @@ -8506,14 +8500,6 @@ static bool ins_tab(void) temp -= get_nolist_virtcol() % temp; - // Move extmarks - extmark_col_adjust(curbuf, - curwin->w_cursor.lnum, - curwin->w_cursor.col, - 0, - temp, - kExtmarkUndo); - /* * Insert the first space with ins_char(). It will delete one char in * replace mode. Insert the rest with ins_str(); it will not delete any |