Skip to content

Commit f32a8db

Browse files
committed
Handle new EditorFunc actions
1 parent 6945c61 commit f32a8db

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

XSVim/Addin.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ type XSVim() as this =
147147
x.Editor.ClearSelection()
148148
false
149149
| ModifierKeys.Command when descriptor.KeyChar <> 'z' && descriptor.KeyChar <> 'r' -> false
150+
| _ when isNull x.Editor ->
151+
// Seems like we can get into this state when closing a tab
152+
false
150153
| _ ->
151154
let oldState = x.State
152155

XSVim/Properties/AssemblyInfo.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open System.Runtime.CompilerServices
55
[<AutoOpen>]
66
module AddinVersion =
77
[<Literal>]
8-
let version = "0.63.1"
8+
let version = "0.63.2"
99

1010
[<assembly: AssemblyTitle("XSVim")>]
1111
// The assembly version has the format {Major}.{Minor}.{Build}.{Revision}

XSVim/XSVim.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,9 @@ module Vim =
12181218
| Func f ->
12191219
f()
12201220
vimState
1221+
| EditorFunc f ->
1222+
f editor
1223+
vimState
12211224
| GotoPad padId ->
12221225
Window.gotoPad padId
12231226
vimState

0 commit comments

Comments
 (0)