summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 378fa335..f87eb066 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -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));
}
/*