Skip to content

Commit

Permalink
Merge pull request #206 from fox0430/fix#203
Browse files Browse the repository at this point in the history
Fix #203
  • Loading branch information
fox0430 authored Apr 3, 2019
2 parents 929f087 + 7c69180 commit 6e8c2b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/moepkg/editorstatus.nim
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,16 @@ proc resize*(status: var EditorStatus, height, width: int) =
resize(status.mainWindow, adjustedHeight - useStatusBar - useTab - 1, adjustedWidth, useTab, 0)
if status.settings.statusBar.useBar: resize(status.statusWindow, 1, adjustedWidth, adjustedHeight - 2, 0)
if status.mode != Mode.filer and status.settings.tabLine.useTab: resize(status.tabWindow, 1, terminalWidth(), 0, 0)
resize(status.commandWindow, 1, adjustedWidth, adjustedHeight - 1, 0)

if status.mode != Mode.filer:
status.view.resize(status.buffer, adjustedHeight - useStatusBar - 1, adjustedWidth-status.view.widthOfLineNum-1, status.view.widthOfLineNum)
status.view.resize(status.buffer, adjustedHeight - useStatusBar - 1, adjustedWidth-status.view.widthOfLineNum - 1, status.view.widthOfLineNum)
status.view.seekCursor(status.buffer, status.currentLine, status.currentColumn)

if status.settings.statusBar.useBar: writeStatusBar(status)

resize(status.commandWindow, 1, adjustedWidth, adjustedHeight - 1, 0)
status.commandWindow.refresh

if status.mode != Mode.filer and status.settings.tabLine.useTab: writeTabLine(status)

proc erase*(status: var EditorStatus) =
Expand Down

0 comments on commit 6e8c2b9

Please sign in to comment.