diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp index c2b1a00a43..472b6db927 100644 --- a/src/mathed/MathRow.cpp +++ b/src/mathed/MathRow.cpp @@ -381,12 +381,14 @@ void MathRow::draw(PainterInfo & pi, int x, int const y) const if (!s1.empty()) { f.setColor(Color_inlinecompletion); - pi.pain.text(x, y, s1, f); + // offset the text by e.after to make sure that the + // spacing is after the completion, not before. + pi.pain.text(x - e.after, y, s1, f); x += mathed_string_width(f, s1); } if (!s2.empty()) { f.setColor(Color_nonunique_inlinecompletion); - pi.pain.text(x, y, s2, f); + pi.pain.text(x - e.after, y, s2, f); x += mathed_string_width(f, s2); } } diff --git a/status.23x b/status.23x index 7f5e56d813..d70960c8a3 100644 --- a/status.23x +++ b/status.23x @@ -126,6 +126,7 @@ What's new - Improve automatic removal of extra spaces, aka DEPM (bug 10503). +- Avoid white space before math completion (bug 11283). * INTERNALS