Skip to content

Commit

Permalink
Merge pull request #1294 from fox0430/fix#1292
Browse files Browse the repository at this point in the history
Hotfix: Fix #1292
  • Loading branch information
fox0430 authored Mar 16, 2021
2 parents 3fc2496 + dd1d3a6 commit 1b95ea7
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 1b95ea7

Please sign in to comment.