From 2a680bad07d82211deaefb75ed39d99d17415f7e Mon Sep 17 00:00:00 2001 From: nosami Date: Wed, 9 Oct 2019 21:10:51 +0100 Subject: [PATCH] Improve IsFocused --- Src/VimMac/VimHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/VimMac/VimHost.cs b/Src/VimMac/VimHost.cs index 17d210cf64..16cca0c712 100644 --- a/Src/VimMac/VimHost.cs +++ b/Src/VimMac/VimHost.cs @@ -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)