Fix issue where spell-replace would not work if the new word contained a space

This commit is contained in:
Jan-Jaap Korpershoek 2018-06-15 16:37:30 +02:00
parent 665d3fa196
commit 941947ee26

View File

@ -109,7 +109,7 @@ define-command spell-replace %{ %sh{
menu=$(printf %s "${suggestions#?}" | awk -F', ' '
{
for (i=1; i<=NF; i++)
printf "%s", "%{"$i"}" "%{execute-keys -itersel c"$i"<esc>be}"
printf "%s", "%{"$i"}" "%{execute-keys -itersel %{c"$i"<esc>be}}"
}
')
printf 'try %%{ menu -auto-single %s }' "${menu}"