Fix issue where spell-replace would not work if the new word contained a space
This commit is contained in:
parent
665d3fa196
commit
941947ee26
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user