From e6b15ae9fd2680df9136db3313185de56be6a9ea Mon Sep 17 00:00:00 2001 From: nosami Date: Sat, 13 May 2017 13:03:02 +0100 Subject: [PATCH] Bump to 0.18.0 --- XSVim/Properties/AddinInfo.fs | 2 +- XSVim/XSVim.fs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/XSVim/Properties/AddinInfo.fs b/XSVim/Properties/AddinInfo.fs index fb90c3f..55a7517 100644 --- a/XSVim/Properties/AddinInfo.fs +++ b/XSVim/Properties/AddinInfo.fs @@ -5,7 +5,7 @@ open MonoDevelop [] [] diff --git a/XSVim/XSVim.fs b/XSVim/XSVim.fs index 42c26dc..d82def2 100755 --- a/XSVim/XSVim.fs +++ b/XSVim/XSVim.fs @@ -659,8 +659,7 @@ module Vim = else None - let (|Movement|_|) = - function + let (|Movement|_|) = function | ["h"] -> Some Left | ["j"] -> Some Down | ["k"] -> Some 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 @@ -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() =