diff --git a/fasttyper/components.py b/fasttyper/components.py index 070c5fb..ae4e018 100644 --- a/fasttyper/components.py +++ b/fasttyper/components.py @@ -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