Skip to content
Snippets Groups Projects
Commit 8a09b98f authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

Fix: strdisplaywidth("x", 2) returned 3 instead of 1.

parent 27c735b2
No related branches found
No related tags found
No related merge requests found
......@@ -16820,7 +16820,7 @@ f_strdisplaywidth(argvars, rettv)
if (argvars[1].v_type != VAR_UNKNOWN)
col = get_tv_number(&argvars[1]);
 
rettv->vval.v_number = (varnumber_T)(linetabsize_col(col, s));
rettv->vval.v_number = (varnumber_T)(linetabsize_col(col, s) - col);
}
 
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment