From f4ed622510e9537f239fab3f7ddd33576fe08427 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 7 Aug 2025 02:51:55 +0200 Subject: [PATCH] Entry: add more delimiter for moving --- src/gui/Entry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/Entry.cpp b/src/gui/Entry.cpp index 95ef5b8..749c7e0 100644 --- a/src/gui/Entry.cpp +++ b/src/gui/Entry.cpp @@ -273,8 +273,8 @@ namespace gsr { void Entry::move_caret_word(Direction direction, size_t max_codepoints) { mgl::Text32 &active_text = masked ? masked_text : text; const int dir_step = direction == Direction::LEFT ? -1 : 1; - const int num_delimiter_chars = 7; - const char delimiter_chars[num_delimiter_chars + 1] = " \t\n/.,;"; + const int num_delimiter_chars = 15; + const char delimiter_chars[num_delimiter_chars + 1] = " \t\n/.,:;\\[](){}"; const char32_t *text_str = active_text.get_string().data(); int num_non_delimiter_chars_found = 0;