Skip to content

Commit

Permalink
Fix #1292
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Mar 16, 2021
1 parent 432bdfc commit 07a239f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/moepkg/editorview.nim
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ proc writeCurrentLine(win: var Window,

currentLineColorPair.inc

# Write spaces after text in the current line
let
spaces = ru" ".repeat(view.width - view.lines[y].len)
x = view.widthOfLineNum + view.lines[y].len
spaces = ru" ".repeat(view.width - view.lines[y].width)
x = view.widthOfLineNum + view.lines[y].width
view.write(win, y, x, spaces, currentLineColorPair)
else:
view.write(win, y, x, str, highlight[i].color)
Expand Down

0 comments on commit 07a239f

Please sign in to comment.