slight refactor in _fish_filter_around_selections command

This commit is contained in:
Alex Leferry 2 2016-09-27 11:47:28 +02:00
parent 0e185c54ef
commit f0820bc83d

View File

@ -34,8 +34,10 @@ addhl -group /fish/code regex \b(and|begin|bg|bind|block|break|breakpoint|builti
# ‾‾‾‾‾‾‾‾
def -hidden _fish_filter_around_selections %{
# remove trailing white spaces
try %{ exec -draft -itersel <a-x>s\h+$<ret>d }
eval -draft -itersel %{
# remove trailing white spaces
try %{ exec -draft <a-x>s\h+$<ret>d }
}
}
def -hidden _fish_indent_on_char %{