comparison src/tag.c @ 23563:87671ccc6c6b v8.2.2324

patch 8.2.2324: not easy to get mark en cursor posotion by character count Commit: https://github.com/vim/vim/commit/6f02b00bb0958f70bc15534e115b4c6dadff0e06 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 20:22:54 2021 +0100 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 #7648)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Jan 2021 20:30:04 +0100
parents bb29b09902d5
children bcf16185be60
comparison
equal deleted inserted replaced
23562:73ddb200924c 23563:87671ccc6c6b
4199 itemdict = li->li_tv.vval.v_dict; 4199 itemdict = li->li_tv.vval.v_dict;
4200 4200
4201 // parse 'from' for the cursor position before the tag jump 4201 // parse 'from' for the cursor position before the tag jump
4202 if ((di = dict_find(itemdict, (char_u *)"from", -1)) == NULL) 4202 if ((di = dict_find(itemdict, (char_u *)"from", -1)) == NULL)
4203 continue; 4203 continue;
4204 if (list2fpos(&di->di_tv, &mark, &fnum, NULL) != OK) 4204 if (list2fpos(&di->di_tv, &mark, &fnum, NULL, FALSE) != OK)
4205 continue; 4205 continue;
4206 if ((tagname = 4206 if ((tagname =
4207 dict_get_string(itemdict, (char_u *)"tagname", TRUE)) == NULL) 4207 dict_get_string(itemdict, (char_u *)"tagname", TRUE)) == NULL)
4208 continue; 4208 continue;
4209 4209