From e8f17df81a6842c44bd3ac4493941a93b3b8a0d3 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Thu, 26 Dec 2019 10:26:40 +0100 Subject: [PATCH] Rename --- NvimView/NvimView/CursorModeShape.swift | 2 +- NvimView/NvimView/NvimView+Debug.swift | 2 +- NvimView/NvimView/NvimView+MenuItems.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NvimView/NvimView/CursorModeShape.swift b/NvimView/NvimView/CursorModeShape.swift index 74b2d093..f515db76 100644 --- a/NvimView/NvimView/CursorModeShape.swift +++ b/NvimView/NvimView/CursorModeShape.swift @@ -12,7 +12,7 @@ public enum CursorModeShape: UInt { case visual case insert case replace - case cmdline + case cmdlineNormal case cmdlineInsert case cmdlineReplace case operatorPending diff --git a/NvimView/NvimView/NvimView+Debug.swift b/NvimView/NvimView/NvimView+Debug.swift index 4475032f..05488660 100644 --- a/NvimView/NvimView/NvimView+Debug.swift +++ b/NvimView/NvimView/NvimView+Debug.swift @@ -68,7 +68,7 @@ extension NvimView { case .visual: return "Visual" case .insert: return "Insert" case .replace: return "Replace" - case .cmdline: return "Cmdline" + case .cmdlineNormal: return "Cmdline" case .cmdlineInsert: return "CmdlineInsert" case .cmdlineReplace: return "CmdlineReplace" case .operatorPending: return "OperatorPending" diff --git a/NvimView/NvimView/NvimView+MenuItems.swift b/NvimView/NvimView/NvimView+MenuItems.swift index a64ed489..4597dda2 100644 --- a/NvimView/NvimView/NvimView+MenuItems.swift +++ b/NvimView/NvimView/NvimView+MenuItems.swift @@ -121,7 +121,7 @@ extension NvimView { return } - if self.mode == .cmdline || self.mode == .cmdlineInsert || self.mode == .cmdlineReplace + if self.mode == .cmdlineNormal || self.mode == .cmdlineInsert || self.mode == .cmdlineReplace || self.mode == .replace || self.mode == .termFocus { self.api