1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-01-27 15:25:24 -05:00

Don't throw error when textbox gets input but is not editable.

This commit is contained in:
Dave Davenport 2016-09-17 18:34:04 +02:00
parent d4d757a7c0
commit 3e272b2b00

View file

@ -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 )