fix for too long words, display only some part of them

This commit is contained in:
Doman 2022-03-06 19:05:33 +01:00
parent 1331c770a0
commit f3b7e5bc7c

View file

@ -146,7 +146,7 @@ class BufferDependentComponent(BorderedBox):
word = self.buffer.get_word(i)
if len(word) > self.width:
word = word[:width]
word = word[: self.width - 1]
if self.line_len(line_nr) + len(word) + 1 > self.width:
self.should_repaint[line_nr] = True