diff options
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -821,8 +821,9 @@ const char *UI::get_location() */ void UI::set_location(const char *str) { - Location->static_value(""); - Location->insert(str); + if (!str) str = ""; + Location->text(str); + Location->position(strlen(str)); } /* |