mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Small fix
This commit is contained in:
parent
696d0a2fa0
commit
54a1147986
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue