From e68ff632e2f54c705ae1d69033e58a8f2d1ca00c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 16 Nov 2020 13:32:49 +0100 Subject: Matrix: show provisional messages as the message is being sent and received --- src/Text.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Text.cpp') diff --git a/src/Text.cpp b/src/Text.cpp index 9c6bc86..b463f92 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -615,11 +615,8 @@ namespace QuickMedia int Text::getStartOfWord(int startIndex) const { assert(!dirty && !dirtyText); - int start_line = get_vertex_line(startIndex); bool start_is_special_char = is_special_character(get_vertex_codepoint(startIndex - 1)); for(int i = startIndex - 1; i >= 0; --i) { - if(get_vertex_line(i) != start_line) - return i + 1; bool is_special_char = is_special_character(vertices_linear[i].codepoint); if(is_special_char != start_is_special_char) return i + 1; @@ -630,11 +627,8 @@ namespace QuickMedia int Text::getEndOfWord(int startIndex) const { assert(!dirty && !dirtyText); const int num_vertices = vertices_linear.size(); - int start_line = get_vertex_line(startIndex); bool start_is_special_char = is_special_character(get_vertex_codepoint(startIndex)); for(int i = startIndex + 1; i < num_vertices; ++i) { - if(get_vertex_line(i) != start_line) - return i - 1; bool is_special_char = is_special_character(vertices_linear[i].codepoint); if(is_special_char != start_is_special_char) return i; -- cgit v1.2.3