c-family.kak: Remove unneeded itersel
itersel can get very expensive with many selections, it should only be used when necessary.
This commit is contained in:
parent
9bd3231d9b
commit
8e1646b702
|
@ -23,10 +23,10 @@ hook global BufCreate .*\.m %{
|
||||||
set-option buffer filetype objc
|
set-option buffer filetype objc
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -hidden c-family-trim-autoindent %[ evaluate-commands -draft -itersel %[
|
define-command -hidden c-family-trim-autoindent %{
|
||||||
# remove the line if it's empty when leaving the insert mode
|
# remove the line if it's empty when leaving the insert mode
|
||||||
try %[ execute-keys <a-x> 1s^(\h+)$<ret> d ]
|
try %{ execute-keys -draft <a-x> 1s^(\h+)$<ret> d }
|
||||||
] ]
|
}
|
||||||
|
|
||||||
define-command -hidden c-family-indent-on-newline %< evaluate-commands -draft -itersel %<
|
define-command -hidden c-family-indent-on-newline %< evaluate-commands -draft -itersel %<
|
||||||
execute-keys \;
|
execute-keys \;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user