From 65ebf890922d92413ca2839fb38fc57ccbcab38d Mon Sep 17 00:00:00 2001 From: Kneemund Date: Tue, 29 Oct 2024 19:46:51 +0100 Subject: [PATCH] fix: revert visibility change --- crates/rnote-engine/src/strokes/textstroke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rnote-engine/src/strokes/textstroke.rs b/crates/rnote-engine/src/strokes/textstroke.rs index f805ff443e..83816854d5 100644 --- a/crates/rnote-engine/src/strokes/textstroke.rs +++ b/crates/rnote-engine/src/strokes/textstroke.rs @@ -830,7 +830,7 @@ impl TextStroke { selection_cursor.set_cursor(0); } - pub fn get_prev_word_start_index(&self, current_char_index: usize) -> usize { + fn get_prev_word_start_index(&self, current_char_index: usize) -> usize { for (start_index, _) in self.text.unicode_word_indices().rev() { if start_index < current_char_index { return start_index;