aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-06 04:46:16 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-06 04:46:16 +0800
commit6ab71683d14a408e79f7cbda3a07ab65f76c6b35 (patch)
tree1b157a39bd397cca8e0887aeb07a806db52040f3 /src/nvim/tag.c
parent8ba9f19961d8573dc851d3d5f2ec217ad2fb7b28 (diff)
downloadrneovim-6ab71683d14a408e79f7cbda3a07ab65f76c6b35.tar.gz
rneovim-6ab71683d14a408e79f7cbda3a07ab65f76c6b35.tar.bz2
rneovim-6ab71683d14a408e79f7cbda3a07ab65f76c6b35.zip
vim-patch:8.2.2324: not easy to get mark en cursor posotion by character count
Problem: Not easy to get mark en cursor posotion by character count. Solution: Add functions that use character index. (Yegappan Lakshmanan, closes vim/vim#7648) https://github.com/vim/vim/commit/6f02b00bb0958f70bc15534e115b4c6dadff0e06
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index a10a2a0c32..54d7e54fb4 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -3408,7 +3408,7 @@ static void tagstack_push_items(win_T *wp, list_T *l)
if ((di = tv_dict_find(itemdict, "from", -1)) == NULL) {
continue;
}
- if (list2fpos(&di->di_tv, &mark, &fnum, NULL) != OK) {
+ if (list2fpos(&di->di_tv, &mark, &fnum, NULL, false) != OK) {
continue;
}
if ((tagname = (char_u *)tv_dict_get_string(itemdict, "tagname", true))