Skip to content

Commit f9e98cb

Browse files
fix #1262 add arbitrary space to sidebar search string to work around sword search bug.
1 parent a5b55fd commit f9e98cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/search_sidebar.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ void main_do_sidebar_search(gpointer user_data)
253253
g_string_append_c(new_search, '+');
254254
}
255255
}
256+
257+
// append an arbitrary space to search string end:
258+
// workaround for sword search failure of single +TERM.
259+
g_string_append_c(new_search, ' ');
260+
256261
search_string = new_search->str;
257262
}
258263

0 commit comments

Comments
 (0)