diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-09-17 18:34:04 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-09-17 18:34:04 +0200 |
commit | 3e272b2b00db2af86b2beeed4ce3cab00817e9ce (patch) | |
tree | 5cc24511b726c4505d8f8dee57f71b856e64f84a /source/textbox.c | |
parent | d4d757a7c065c7a3419353765e071023ea83e883 (diff) |
Don't throw error when textbox gets input but is not editable.
Diffstat (limited to 'source/textbox.c')
-rw-r--r-- | source/textbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/textbox.c b/source/textbox.c index 1e8f8ab7..6b0e7d41 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -482,7 +482,7 @@ void textbox_insert ( textbox *tb, const int char_pos, const char *str, const in // Set modified, lay out need te be redrawn // Stop blink! - tb->blink = 2; + tb->blink = 2; tb->changed = TRUE; tb->update = TRUE; } @@ -511,7 +511,7 @@ void textbox_delete ( textbox *tb, int pos, int dlen ) } // Set modified, lay out need te be redrawn // Stop blink! - tb->blink = 2; + tb->blink = 2; tb->changed = TRUE; tb->update = TRUE; } @@ -580,7 +580,7 @@ static void textbox_cursor_del_word ( textbox *tb ) int textbox_keybinding ( textbox *tb, KeyBindingAction action ) { if ( !( tb->flags & TB_EDITABLE ) ) { - g_return_val_if_reached ( 0 ); + return 0; } switch ( action ) |