From 941947ee2635f0b883c034369ce69d55ad1dc2e4 Mon Sep 17 00:00:00 2001 From: Jan-Jaap Korpershoek Date: Fri, 15 Jun 2018 16:37:30 +0200 Subject: [PATCH] Fix issue where spell-replace would not work if the new word contained a space --- rc/base/spell.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/spell.kak b/rc/base/spell.kak index a1811a9b..793b66f9 100644 --- a/rc/base/spell.kak +++ b/rc/base/spell.kak @@ -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"be}" + printf "%s", "%{"$i"}" "%{execute-keys -itersel %{c"$i"be}}" } ') printf 'try %%{ menu -auto-single %s }' "${menu}"