Selecting a single line in visual line mode and then pressing f<CR> causes the following error:
Error detected while processing function highlighter#Command[22]..<SNR>168_SetHighlight[28]..<SNR>168_GetVisualLine:
line 9:
E951: \% value too large
After the error is dismissed the line is successfully highlighted
Digging around, the error seems to occur at line 264 of autoload/highlighter.vim. One guess is that it is caused by an of-by-one error and indeed changing l:right to l:right-1 does cause the error to go away. I'm not sure what the intended purpose of the function is as the highlighting seems to work even when the error occurs so I'm not sure that this fix preserves the intended functionality of the code.
See title.
Selecting a single line in visual line mode and then pressing
f<CR>
causes the following error:After the error is dismissed the line is successfully highlighted
Digging around, the error seems to occur at line 264 of
autoload/highlighter.vim
. One guess is that it is caused by an of-by-one error and indeed changingl:right
tol:right-1
does cause the error to go away. I'm not sure what the intended purpose of the function is as the highlighting seems to work even when the error occurs so I'm not sure that this fix preserves the intended functionality of the code.