Skip to content

Commit

Permalink
Merge pull request #563 from fox0430/fix-highlight
Browse files Browse the repository at this point in the history
Fix highlight in visual mode
  • Loading branch information
fox0430 authored Apr 2, 2020
2 parents 499c517 + 2235485 commit 2306d57
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 @@ -417,8 +417,8 @@ proc update*(status: var EditorStatus) =

if (currentMode != Mode.filer) or (currentMode == Mode.ex and prevMode == Mode.filer):
if status.settings.highlightOtherUsesCurrentWord or status.settings.highlightPairOfParen or isVisualMode: status.updateHighlight(status.currentBuffer)
if isVisualMode or isVisualBlockMode: status.highlightSelectedArea
if status.settings.highlightOtherUsesCurrentWord and currentMode != Mode.filer: status.highlightOtherUsesCurrentWord
if isVisualMode or isVisualBlockMode: status.highlightSelectedArea
if status.settings.highlightPairOfParen and currentMode != Mode.filer: status.highlightPairOfParen

var queue = initHeapQueue[WindowNode]()
Expand Down

0 comments on commit 2306d57

Please sign in to comment.