Skip to content

Commit

Permalink
Fix #590
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Apr 19, 2020
1 parent 7f3a755 commit 301ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moepkg/editorstatus.nim
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ proc update*(status: var EditorStatus) =
## Update highlight
## TODO: Refactor and fix
if (currentMode != Mode.filer) and not (currentMode == Mode.ex and prevMode == Mode.filer):
status.updateHighlight(node)
if isCurrentMainWin:
if status.settings.highlightOtherUsesCurrentWord: status.highlightOtherUsesCurrentWord
if isVisualMode or isVisualBlockMode: status.highlightSelectedArea
if status.settings.highlightPairOfParen: status.highlightPairOfParen
status.updateHighlight(node)

let
startSelectedLine = bufStatus.selectArea.startLine
Expand Down

0 comments on commit 301ec98

Please sign in to comment.