diff --git a/rc/base/autowrap.kak b/rc/base/autowrap.kak index 196431d9..e925407f 100644 --- a/rc/base/autowrap.kak +++ b/rc/base/autowrap.kak @@ -16,7 +16,7 @@ def -hidden autowrap-cursor %{ eval -save-regs '/"|^@m' %{ reg m "%val{selections_desc}" ## if we're adding characters past the limit, just wrap them around - exec ".{%opt{autowrap_column},}\h*[^\s]1s.{%opt{autowrap_column}}[^\h]*(\h+)c" + exec -draft ".{%opt{autowrap_column}}\h*[^\s]*1s(\h+)[^\h]*\'c" } catch %{ ## if we're adding characters in the middle of a sentence, use ## the `fmtcmd` command to wrap the entire paragraph