diff --git a/base b/base index 3813bb1b9..53ff64833 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 3813bb1b950abdd75a11b96e237ca9932f3dc1a5 +Subproject commit 53ff64833621a1d85c04111ac7c05094f585fe0d diff --git a/frontend/ui/widget/textboxwidget.lua b/frontend/ui/widget/textboxwidget.lua index 6acd0c6e7..b1017aac0 100644 --- a/frontend/ui/widget/textboxwidget.lua +++ b/frontend/ui/widget/textboxwidget.lua @@ -665,7 +665,8 @@ function TextBoxWidget:_renderText(start_row_idx, end_row_idx) -- Requested to add an ellipsis on this line local ellipsis_width = RenderText:getEllipsisWidth(self.face) -- no bold: xtext does synthetized bold with normal metrics - if line.width + ellipsis_width > line.targeted_width then + line.width = line.width + ellipsis_width + if line.width > line.targeted_width then -- The ellipsis would overflow: we need to re-makeLine() -- this line with a smaller targeted_width line = self._xtext:makeLine(line.offset, line.targeted_width - ellipsis_width)