summaryrefslogtreecommitdiffstats
path: root/source/widgets/textbox.c
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-03-15 01:00:56 +0100
committerDave Davenport <qball@blame.services>2022-03-15 01:00:56 +0100
commitf088d75ee4bae12e7bd1297a8eb6a618833636a4 (patch)
treeff2ba2c9223b2a32174baa31c0d56d45c35e57ea /source/widgets/textbox.c
parentd623e18fbbc8357f2c269922a1e7b2d069f649db (diff)
Cleanup some duplicate checks.
Diffstat (limited to 'source/widgets/textbox.c')
-rw-r--r--source/widgets/textbox.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index bf989900..93d4c4d7 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -728,9 +728,7 @@ static void textbox_cursor_del_eol(textbox *tb) {
static void textbox_cursor_del_sol(textbox *tb) {
if (tb && tb->cursor >= 0) {
int length = tb->cursor;
- if (length >= 0) {
- textbox_delete(tb, 0, length);
- }
+ textbox_delete(tb, 0, length);
}
}
static void textbox_cursor_del_word(textbox *tb) {