1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

Fix already-existing error in cabal.kak

This commit is contained in:
John Isom 2020-07-28 16:01:11 -06:00
parent ec48e07b2a
commit f3f477aa04

View File

@ -52,8 +52,8 @@ define-command -hidden cabal-trim-indent %{
define-command -hidden cabal-indent-on-new-line %[
evaluate-commands -draft -itersel %[
# copy '#' comment prefix and following white spaces
try %[ execute-keys -draft k <a-x> s ^\h*\K#\h* <ret> y gh j P ]
# copy '--' comment prefix and following white spaces
try %[ execute-keys -draft k <a-x> s ^\h*\K--\h* <ret> y gh j P ]
# preserve previous line indent
try %[ execute-keys -draft <semicolon> K <a-&> ]
# filter previous line