keybinds/niri: fix quote preservation

This commit is contained in:
bbedward committed 2026-02-20 11:37:02 -05:00
1 parent a0283b3e3e
commit 2f445c546a
1 file changed
+2
+2
View File
@@ -341,6 +341,8 @@ func (n *NiriProvider) buildActionFromNode(bindNode *document.Node) string {
val := arg.ValueString()
if val == "" {
parts = append(parts, `""`)
} else if strings.ContainsAny(val, " \t") {
parts = append(parts, `"`+strings.ReplaceAll(val, `"`, `\"`)+`"`)
} else {
parts = append(parts, val)
}