summaryrefslogtreecommitdiff
path: root/desktop/gmrun/patches/10-escaping.patch
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gmrun/patches/10-escaping.patch')
-rw-r--r--desktop/gmrun/patches/10-escaping.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/desktop/gmrun/patches/10-escaping.patch b/desktop/gmrun/patches/10-escaping.patch
new file mode 100644
index 0000000000..b4bc2084b6
--- /dev/null
+++ b/desktop/gmrun/patches/10-escaping.patch
@@ -0,0 +1,23 @@
+# Description: Correct escaping of characters
+# Author: Luca Bedogni <me@lucabedogni.it>
+
+Index: gmrun-0.9.2/src/gtkcompletionline.cc
+===================================================================
+--- gmrun-0.9.2.orig/src/gtkcompletionline.cc 2010-02-03 12:30:02.239774762 +0800
++++ gmrun-0.9.2/src/gtkcompletionline.cc 2010-02-03 12:30:24.983767847 +0800
+@@ -226,12 +226,9 @@
+ const char* i = str.c_str();
+ while (*i) {
+ char c = *i++;
+- switch (c) {
+- case ' ':
+- res += '\\';
+- default:
+- res += c;
+- }
++ if (c == ' ' || c == '(' || c == ')' || c =='\'')
++ res += '\\';
++ res += c;
+ }
+ return res;
+ }