diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-08-11 17:38:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 17:38:36 +0200 |
commit | 7d2233fad007a3dd42481f8ffc01e69b57a17f9e (patch) | |
tree | a539fc5a49b000086de4a0ab7c6fbd49e8de9ab8 /src/nvim/ex_cmds.c | |
parent | 2c60f7c99188e90739d83f3c131134b71cd37436 (diff) | |
parent | 28b5c73bf8b5cc92451a4030b4ffbbad6c56374b (diff) | |
download | rneovim-7d2233fad007a3dd42481f8ffc01e69b57a17f9e.tar.gz rneovim-7d2233fad007a3dd42481f8ffc01e69b57a17f9e.tar.bz2 rneovim-7d2233fad007a3dd42481f8ffc01e69b57a17f9e.zip |
Merge pull request #15336 from bfredl/plines
refactor(plines): move "plines" (size of printed lines) family of function to own file
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 3ad1fb1adc..041140211e 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -55,6 +55,7 @@ #include "nvim/option.h" #include "nvim/os_unix.h" #include "nvim/path.h" +#include "nvim/plines.h" #include "nvim/quickfix.h" #include "nvim/regexp.h" #include "nvim/screen.h" @@ -828,7 +829,7 @@ void ex_retab(exarg_T *eap) } if (ptr[col] == NUL) break; - vcol += chartabsize(ptr + col, (colnr_T)vcol); + vcol += win_chartabsize(curwin, ptr + col, (colnr_T)vcol); col += utfc_ptr2len(ptr + col); } if (new_line == NULL) /* out of memory */ |