summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index d5079504..69da651a 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -60,8 +60,8 @@ def -hidden _python_indent_on_new_line %{
# cleanup trailing whitespaces from previous line
try %{ exec -draft k <a-x> s \h+$ <ret> d }
# copy '#' comment prefix and following white spaces
- try %{ exec -draft k x s ^\h*\K#\h* <ret> y j p }
- # indent after :
+ try %{ exec -draft k x s ^\h*#\h* <ret> y jgh P }
+ # indent after line ending with :
try %{ exec -draft <space> k x <a-k> :$ <ret> j <a-gt> }
}
}