mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -1579,7 +1579,7 @@ tv_get_lnum(typval_T *argvars)
|
||||
if (lnum <= 0) // no valid number, try using arg like line()
|
||||
{
|
||||
int fnum;
|
||||
pos_T *fp = var2fpos(&argvars[0], TRUE, &fnum);
|
||||
pos_T *fp = var2fpos(&argvars[0], TRUE, &fnum, FALSE);
|
||||
|
||||
if (fp != NULL)
|
||||
lnum = fp->lnum;
|
||||
|
Reference in New Issue
Block a user