fix for too long words, display only some part of them
This commit is contained in:
parent
1331c770a0
commit
f3b7e5bc7c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue