forked from aniani/vim
patch 8.2.1853: "to_f" is recognized at "topleft" modifier
Problem: "to_f" is recognized at "topleft" modifier. Solution: Do not recognize modifer when "_" follows. (closes #7019)
This commit is contained in:
@@ -3123,7 +3123,7 @@ checkforcmd(
|
||||
for (i = 0; cmd[i] != NUL; ++i)
|
||||
if (((char_u *)cmd)[i] != (*pp)[i])
|
||||
break;
|
||||
if (i >= len && !isalpha((*pp)[i]))
|
||||
if (i >= len && !isalpha((*pp)[i]) && (*pp)[i] != '_')
|
||||
{
|
||||
*pp = skipwhite(*pp + i);
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user