You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:HSRmHighlight <rm_all>: If the rm_all argument is given, removes all the highlighting in the current buffer. If not, does the same but for every line in visual selection.
Removing all highlights works fine.
However visually selecting a range and runing the function throws the following error:
E481: No range allowed
I tried both visual line and line selections, and both throw the same error.
I just realized that it was an issue with the Highlight command as well: the command doesn't work on what is currently visually selected; but it works when nothing is selected, it will highlight what was last selected.
Reproduction steps:
Visually select anything.
Run :HSHighlight 1 (the command line should show :'<,'>HSHighlight 1).
E481: No range allowed
You should be back in normal mode at this point, run :HSHighlight 1 again.
What was previsouly selected is now properly highlighted.
Other unexpected behavior
:HSRmHighlight will apparently remove more than what was last selected:
Removing line-wise highlights
Reproduction steps:
Highlight line n with color X (<S-v> mapping).
Highlight line n + 1 with color Y
Run :HSRmHighlight without anything visually selected.
Both lines should be erased except the first character of line n (in color X). it should only have erased the last thing we selected (the last highlight, in color Y).
Removing "regular" highlights
Reproduction steps:
Highlight a few characters on a line with color X.
Highlight some other characters on that line with color Y.
Run :HSRmHighlight without anything visually selected.
The entire line highlights are erased. Both X and Y colors.
The relative position of the highlighted ranges does not matter.
Bonus
It appears that the :HSRmHighlight command also erases highlights from other plugins such as indent-blankline, fortunately that's a temporary issue.
The text was updated successfully, but these errors were encountered:
Immediate issue
The
HSRmHighlight
documentation states:Removing all highlights works fine.
However visually selecting a range and runing the function throws the following error:
I tried both visual line and line selections, and both throw the same error.
I just realized that it was an issue with the Highlight command as well: the command doesn't work on what is currently visually selected; but it works when nothing is selected, it will highlight what was last selected.
Reproduction steps:
:HSHighlight 1
(the command line should show:'<,'>HSHighlight 1
).normal
mode at this point, run:HSHighlight 1
again.Other unexpected behavior
:HSRmHighlight
will apparently remove more than what was last selected:Removing line-wise highlights
Reproduction steps:
n
with color X (<S-v>
mapping).n + 1
with color Y:HSRmHighlight
without anything visually selected.n
(in color X). it should only have erased the last thing we selected (the last highlight, in color Y).Removing "regular" highlights
Reproduction steps:
:HSRmHighlight
without anything visually selected.The relative position of the highlighted ranges does not matter.
Bonus
It appears that the
:HSRmHighlight
command also erases highlights from other plugins such asindent-blankline
, fortunately that's a temporary issue.The text was updated successfully, but these errors were encountered: