aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-16 13:32:49 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-16 13:32:49 +0100
commite68ff632e2f54c705ae1d69033e58a8f2d1ca00c (patch)
tree24f6d1b220767dd393b7ee62b9267ac958d521a2 /src/Text.cpp
parentf9608af936c39c57633129a62472d315aef62d9c (diff)
Matrix: show provisional messages as the message is being sent and received
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp6
1 files changed, 0 insertions, 6 deletions
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;