clean_around_selections: select full lines before filtering

This commit is contained in:
Alex Leferry 2 2014-07-03 01:08:45 +02:00
parent 9c9d56abf7
commit e621814a78

View File

@ -35,8 +35,9 @@ addhl -group /fish/code regex %sh{ printf '\<(%s)\>' $(printf '\Q%s\\E|' $(fish
def -hidden _fish_clean_around_selections %{
eval -draft -itersel %{
exec <a-x>
# trailing white spaces
try %{ exec -draft <a-x> s \h+$ <ret> d }
try %{ exec -draft s \h+$ <ret> d }
}
}