|
1 | | -using System; |
| 1 | +/********************************************************************++ |
| 2 | +Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +--********************************************************************/ |
| 4 | + |
| 5 | +using System; |
2 | 6 | using System.Collections.Generic; |
3 | 7 | using System.Linq; |
4 | 8 | using System.Text; |
@@ -36,7 +40,6 @@ public static ConsoleColor AlternateBackground(ConsoleColor bg) |
36 | 40 | } |
37 | 41 |
|
38 | 42 | private int _normalCursorSize = 10; |
39 | | - private ConsoleColor _normalBackground = ConsoleColor.Black; |
40 | 43 |
|
41 | 44 | private static KeyHandler MakeViKeyHandler(Action<ConsoleKeyInfo?, object> action, string briefDescription, string longDescription = null) |
42 | 45 | { |
@@ -196,7 +199,7 @@ private static KeyHandler MakeViKeyHandler(Action<ConsoleKeyInfo?, object> actio |
196 | 199 | { Keys.Pipe, MakeViKeyHandler(GotoColumn, "GotoColumn") }, |
197 | 200 | { Keys.Uphat, MakeViKeyHandler(GotoFirstNonBlankOfLine, "GotoFirstNonBlankOfLine") }, |
198 | 201 | { Keys.Tilde, MakeViKeyHandler(InvertCase, "InvertCase") }, |
199 | | - { Keys.Slash, MakeViKeyHandler(SearchBackward, "SearchBackward") }, |
| 202 | + { Keys.Slash, MakeViKeyHandler(ViSearchHistoryBackward, "SearchBackward") }, |
200 | 203 | { Keys.CtrlR, MakeViKeyHandler(SearchCharBackward, "SearchCharBackward") }, |
201 | 204 | { Keys.Question, MakeViKeyHandler(SearchForward, "SearchForward") }, |
202 | 205 | { Keys.CtrlS, MakeViKeyHandler(SearchForward, "SearchForward") }, |
@@ -286,7 +289,6 @@ private void SetDefaultViBindings() |
286 | 289 | _viCmdChordTable[Keys.Y] = _viChordYTable; |
287 | 290 |
|
288 | 291 | _normalCursorSize = _console.CursorSize; |
289 | | - _normalBackground = _console.BackgroundColor; |
290 | 292 | } |
291 | 293 | } |
292 | 294 | } |
0 commit comments