Skip to content

Commit

Permalink
Grab focus when addin initializes. Fixes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Jun 15, 2017
1 parent c232b9c commit 300b868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion XSVim/Properties/AddinInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open MonoDevelop
[<assembly:Addin (
"XSVim",
Namespace = "XSVim",
Version = "0.31.2"
Version = "0.31.3"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
1 change: 1 addition & 0 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,7 @@ type XSVim() =
if not (editorStates.ContainsKey x.FileName) then
editorStates.Add(x.FileName, Vim.defaultState )
let editor = x.Editor
editor.GrabFocus()
EditActions.SwitchCaretMode editor
let caretChanged =
editor.CaretPositionChanged.Subscribe
Expand Down

0 comments on commit 300b868

Please sign in to comment.