Skip to content

Commit

Permalink
Fix buffer text overwriting scrollbar when window width is 1 char
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaluka committed Dec 3, 2023
1 parent d09fa4b commit b6ff11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/display/bufwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ func (w *BufWindow) displayBuffer() {
wordwidth := 0

totalwidth := w.StartCol - nColsBeforeStart
for len(line) > 0 {
for len(line) > 0 && vloc.X < maxWidth {
r, combc, size := util.DecodeCharacter(line)
line = line[size:]

Expand Down

0 comments on commit b6ff11d

Please sign in to comment.