1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Small fix

This commit is contained in:
Dave Davenport 2015-12-23 17:59:03 +01:00
parent 696d0a2fa0
commit 54a1147986

View file

@ -414,6 +414,11 @@ static void textbox_cursor_dec_word ( textbox *tb )
// end of line // end of line
void textbox_cursor_end ( textbox *tb ) void textbox_cursor_end ( textbox *tb )
{ {
if ( tb->text == NULL ) {
tb->cursor = 0;
tb->update = TRUE;
return;
}
tb->cursor = ( int ) strlen ( tb->text ); tb->cursor = ( int ) strlen ( tb->text );
tb->update = TRUE; tb->update = TRUE;
} }