Skip to content

Commit

Permalink
Bump to 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed May 13, 2017
1 parent 2f36130 commit e6b15ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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.17.0"
Version = "0.18.0"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
6 changes: 4 additions & 2 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,7 @@ module Vim =
else
None

let (|Movement|_|) =
function
let (|Movement|_|) = function
| ["h"] -> Some Left
| ["j"] -> Some Down
| ["k"] -> Some Up
Expand Down Expand Up @@ -862,6 +861,7 @@ module Vim =
let newState = { state with keys = newKeys }
let action, newState = parseKeys newState
LoggingService.LogDebug (sprintf "%A" action)

let rec performActions actions' state handled =
match actions' with
| [] -> state, handled
Expand All @@ -873,9 +873,11 @@ module Vim =
performActions t { newState with keys = [] } true

let newState, handled = performActions action newState false

match newState.statusMessage with
| Some m -> IdeApp.Workbench.StatusBar.ShowMessage m
| _ -> IdeApp.Workbench.StatusBar.ShowReady()

{ newState with lastAction = action }, handled

type XSVim() =
Expand Down

0 comments on commit e6b15ae

Please sign in to comment.