diff options
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 9e4cf7350..b6a93b1f8 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -1952,6 +1952,13 @@ gtk_move_forward_word (GtkEntry *entry) editable = GTK_EDITABLE (entry); + /* Prevent any leak of information */ + if (!editable->visible) + { + editable->current_pos = entry->text_length; + return; + } + if (entry->text && (editable->current_pos < entry->text_length)) { text = entry->text; @@ -1983,6 +1990,13 @@ gtk_move_backward_word (GtkEntry *entry) editable = GTK_EDITABLE (entry); + /* Prevent any leak of information */ + if (!editable->visible) + { + editable->current_pos = 0; + return; + } + if (entry->text && editable->current_pos > 0) { text = entry->text; |