From 712c99059261e14d03105bbc755f55da16639001 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 14 Jul 2016 17:21:35 +0300 Subject: [PATCH] Fix the selection patterns on corner cases --- rc/base/autowrap.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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