Closed Screwtapello closed 5 years ago
Actually, I'm not sure if this should be fail
or echo -markup {Error}
. fail
is consistent with other Kakoune selection-modifying commands, but it does break my locked user-mode when I invoke tree-select-children
too many times.
Maybe my user-mode should just execute
: try %{ tree-select-children } catch %{ echo -markup {Error}no children }<ret>
...to eat the error.
Woohoo! Thanks for all those PRs =)
While tinkering with the "select children" logic, I discovered that if you remove all selections, Kakoune gets cross. Let's display the traditional error-message in that case.