summaryrefslogtreecommitdiff
path: root/src/gui_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_gtk.cc')
-rw-r--r--src/gui_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_gtk.cc b/src/gui_gtk.cc
index c02bdf6..9b6addc 100644
--- a/src/gui_gtk.cc
+++ b/src/gui_gtk.cc
@@ -2302,12 +2302,12 @@ std::string GtkGuiMenu::unescape(std::string const& action) {
std::string ret;
for (size_t i = 0; i < action.size(); ++i) {
if (action[i] != '.') continue;
+ ret.append(action, last, i - last);
++i;
if (i == action.size()) {
assert(false);
return "";
}
- ret.append(action, last, i - last);
if (action[i] == '.') {
last = i + 1;
ret.push_back('.');