diff options
Diffstat (limited to 'interface-gtk.cpp')
-rw-r--r-- | interface-gtk.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/interface-gtk.cpp b/interface-gtk.cpp index 38100fe..ed0b36c 100644 --- a/interface-gtk.cpp +++ b/interface-gtk.cpp @@ -69,7 +69,7 @@ InterfaceGtk::InterfaceGtk() ssm(SCI_SETFOCUS, TRUE); - cmdline_update(); + cmdline_update(""); } void @@ -100,6 +100,10 @@ InterfaceGtk::cmdline_update(const gchar *cmdline) { gint pos = 1; + if (!cmdline) + /* widget automatically redrawn */ + return; + gtk_entry_set_text(GTK_ENTRY(cmdline_widget), "*"); gtk_editable_insert_text(GTK_EDITABLE(cmdline_widget), cmdline, -1, &pos); |