summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/textarea.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index a15d64ca2..555178065 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -1840,8 +1840,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
&& line < ta->line_count - 1)
b_len--;
- l_len = utf8_bounded_length(
- &(ta->text.data[b_off]),
+ l_len = utf8_bounded_length(&(ta->text.data[b_off]),
b_len);
ta->caret_pos.line = line;
@@ -1891,8 +1890,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
line < ta->line_count - 1)
b_len--;
- l_len = utf8_bounded_length(
- &(ta->text.data[b_off]),
+ l_len = utf8_bounded_length(&(ta->text.data[b_off]),
b_len);
ta->caret_pos.line = line;