aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keys.cc2
-rw-r--r--src/ui.cc7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/keys.cc b/src/keys.cc
index b6c3efd4..3dea1d98 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -250,7 +250,7 @@ void Keys::parseKey(char *key, char *commandName)
// Get command code
if ((st = getCmdCode(commandName)) == -1) {
- MSG("Invalid command name: '%s'\n", commandName);
+ MSG("Keys::parseKey: Invalid command name: '%s'\n", commandName);
return;
} else
symcode = st;
diff --git a/src/ui.cc b/src/ui.cc
index c8abb57d..15007280 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -1079,8 +1079,11 @@ void UI::set_tab_title(const char *label)
}
snprintf(title + tab_chars, 4, "...");
}
- this->copy_label(title);
- this->redraw_label();
+ // Avoid unnecessary redraws
+ if (strcmp(this->label(), title)) {
+ this->copy_label(title);
+ this->redraw_label();
+ }
// Disabled because of a bug in fltk::Tabgroup
//dFree(TabTooltip);