Skip to content

Commit

Permalink
Improve IsFocused
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Nov 6, 2019
1 parent 9cf4bec commit 2a680ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/VimMac/VimHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public bool IsDirty(ITextBuffer textBuffer)

public bool IsFocused(ITextView textView)
{
return true;
return TextViewFromDocument(IdeServices.DocumentManager.ActiveDocument) == textView;
}

public bool IsReadOnly(ITextBuffer textBuffer)
Expand Down

0 comments on commit 2a680ba

Please sign in to comment.