diff --git a/.config/kak/autoload/autowrap.kak b/.config/kak/autoload/autowrap.kak index f842ef8d..ccff280d 100644 --- a/.config/kak/autoload/autowrap.kak +++ b/.config/kak/autoload/autowrap.kak @@ -19,7 +19,7 @@ define-command -hidden autowrap-cursor %{ evaluate-commands -save-regs '/"|^@m' reg m "%val{selections_desc}" ## if we're adding characters past the limit, just wrap them around - execute-keys -draft ".{%opt{autowrap_column}}\h*[^\s]*1s(\h+)[^\h]*\zc" + execute-keys -draft ".{%opt{autowrap_column}}\h*[^\s]*1s(\h+)[^\h]*\zcghH" } catch %{ ## if we're adding characters in the middle of a sentence, use ## the `fmtcmd` command to wrap the entire paragraph