summaryrefslogtreecommitdiff
path: root/src/math-equation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math-equation.c')
-rw-r--r--src/math-equation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math-equation.c b/src/math-equation.c
index ac70948..9b46e73 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -1859,8 +1859,8 @@ pre_insert_text_cb(MathEquation *equation,
offset = gtk_text_iter_get_offset(location);
get_ans_offsets(equation, &ans_start, &ans_end);
- /* Inserted inside ans */
- if (offset > ans_start && offset < ans_end)
+ /* Inserted inside or right before ans */
+ if (offset >= ans_start && offset < ans_end)
clear_ans(equation, TRUE);
}
}