diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-12-23 17:59:03 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-12-23 17:59:03 +0100 |
commit | 54a1147986863fc8a8889af7e829f437300b35a4 (patch) | |
tree | 3ff8299ea9a670859022c656a707612372ddbe7b /source | |
parent | 696d0a2fa09fc52ee888178dc8f43161cb9d13ce (diff) |
Small fix
Diffstat (limited to 'source')
-rw-r--r-- | source/textbox.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/textbox.c b/source/textbox.c index ea129aa3..250935d5 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -414,6 +414,11 @@ static void textbox_cursor_dec_word ( textbox *tb ) // end of line void textbox_cursor_end ( textbox *tb ) { + if ( tb->text == NULL ) { + tb->cursor = 0; + tb->update = TRUE; + return; + } tb->cursor = ( int ) strlen ( tb->text ); tb->update = TRUE; } |