diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-06 05:18:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 05:18:02 +0800 |
commit | b17f1e6fe86ae44676647ef939b361f54d95cd4d (patch) | |
tree | ac9ac6bd464b36bc1c71c6b5282846f26fbe50f9 /src/nvim/eval/typval.c | |
parent | 92e92f02e7106fcad1597bb8f0edf1e43186a07f (diff) | |
parent | be9dbc925ce66a8880ac9ccc68e3ac902b322de0 (diff) | |
download | rneovim-b17f1e6fe86ae44676647ef939b361f54d95cd4d.tar.gz rneovim-b17f1e6fe86ae44676647ef939b361f54d95cd4d.tar.bz2 rneovim-b17f1e6fe86ae44676647ef939b361f54d95cd4d.zip |
Merge pull request #17077 from zeertzjq/vim-8.2.2324
vim-patch:8.2.{1727,2324,2363}: charcol(), getcharpos(), getcursorcharpos(), setcharpos(), setcursorcharpos()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 42ac1839e6..e583ce49b2 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -3091,7 +3091,7 @@ linenr_T tv_get_lnum(const typval_T *const tv) linenr_T lnum = (linenr_T)tv_get_number_chk(tv, NULL); if (lnum == 0) { // No valid number, try using same function as line() does. int fnum; - pos_T *const fp = var2fpos(tv, true, &fnum); + pos_T *const fp = var2fpos(tv, true, &fnum, false); if (fp != NULL) { lnum = fp->lnum; } |