Commit cd84bdd3 authored by Jan Holthuis's avatar Jan Holthuis

Escape hash char in girara_escape_string()

This fixes an issue when a completion item (e.g. a parent directory of a
file in zathura) contains a hash char and breaks completion.
parent b6ec0135
......@@ -383,7 +383,7 @@ girara_escape_string(const char* value)
GString* str = g_string_new("");
while (*value != '\0') {
const char c = *value++;
if (strchr("\\ \t\"\'", c) != NULL) {
if (strchr("\\ \t\"\'#", c) != NULL) {
g_string_append_c(str, '\\');
g_string_append_c(str, c);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment