AutoYADM commit: 2025-06-23 14:30:15

This commit is contained in:
Daniel Fichtinger 2025-06-23 14:30:15 -04:00
parent 4e0160be5c
commit 9c222dd7df

View file

@ -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 "<a-h><a-k>.{%opt{autowrap_column}}\h*[^\s]*<ret>1s(\h+)[^\h]*\z<ret>c<ret>"
execute-keys -draft "<a-h><a-k>.{%opt{autowrap_column}}\h*[^\s]*<ret>1s(\h+)[^\h]*\z<ret>c<ret><esc>ghH<a-&>"
} catch %{
## if we're adding characters in the middle of a sentence, use
## the `fmtcmd` command to wrap the entire paragraph