diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-01-22 21:05:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 21:05:12 +0100 |
commit | 51f783f2faa2008bfb4136a15029a78efbc77715 (patch) | |
tree | 5b365b7d3f9f00fdc19f1ac5f30645a2afa66396 /src/nvim/edit.c | |
parent | 012cfced9b5384fefa11d74346779b1725106d07 (diff) | |
parent | 9af2be292db3db7b28a6210263f719a6bbc4059f (diff) | |
download | rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.tar.gz rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.tar.bz2 rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.zip |
Merge pull request #27011 from bfredl/metatree
perf(extmarks): add metadata for efficient filtering of special decorations
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 1415f0ca35..25d2c964ed 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -41,6 +41,7 @@ #include "nvim/mapping.h" #include "nvim/mark.h" #include "nvim/mark_defs.h" +#include "nvim/marktree.h" #include "nvim/mbyte.h" #include "nvim/mbyte_defs.h" #include "nvim/memline.h" @@ -240,7 +241,7 @@ static void insert_enter(InsertState *s) // need to position cursor again when on a TAB and // when on a char with inline virtual text - if (gchar_cursor() == TAB || curbuf->b_virt_text_inline > 0) { + if (gchar_cursor() == TAB || buf_meta_total(curbuf, kMTMetaInline) > 0) { curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL); } @@ -3472,7 +3473,7 @@ static bool ins_esc(int *count, int cmdchar, bool nomove) may_trigger_modechanged(); // need to position cursor again when on a TAB and // when on a char with inline virtual text - if (gchar_cursor() == TAB || curbuf->b_virt_text_inline > 0) { + if (gchar_cursor() == TAB || buf_meta_total(curbuf, kMTMetaInline) > 0) { curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL); } |