python.kak: restore cleaning up trailing whitespaces on newline

This commit is contained in:
Maxime Coste 2016-05-05 13:50:49 +01:00
parent 763bb5aed1
commit 13ab721f64

View File

@ -58,7 +58,7 @@ def -hidden _python_indent_on_new_line %{
# preserve previous line indent # preserve previous line indent
try %{ exec -draft <space> K <a-&> } try %{ exec -draft <space> K <a-&> }
# filter previous line # filter previous line
try %{ exec -draft k : _python_filter_around_selections <ret> } try %{ exec -draft k <a-x> s \h+$ <ret> d }
# copy '#' comment prefix and following white spaces # copy '#' comment prefix and following white spaces
try %{ exec -draft k x s ^\h*\K#\h* <ret> y j p } try %{ exec -draft k x s ^\h*\K#\h* <ret> y j p }
# indent after : # indent after :