diff options
author | mbkma <[email protected]> | 2020-08-15 23:32:32 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-09-04 12:32:00 +0200 |
commit | c7658b5a7c5ecbabb3390844f19ba43626825554 (patch) | |
tree | eb77fbc2941db117b9f405074a92652b2a0f246e /src/math-equation.c | |
parent | 587a457199a5102f9c930ec464efdb6daa420fee (diff) | |
download | mate-calc-c7658b5a7c5ecbabb3390844f19ba43626825554.tar.bz2 mate-calc-c7658b5a7c5ecbabb3390844f19ba43626825554.tar.xz |
Clear answer if editing right before it
Diffstat (limited to 'src/math-equation.c')
-rw-r--r-- | src/math-equation.c | 4 |
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); } } |