Skip to content

Commit

Permalink
Show fake caret only in Command mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Nov 6, 2019
1 parent 7b5a1ef commit d8a3763
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Src/VimMac/VimKeyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,18 @@ public override void KeyDown(KeyEventArgs e)
{
handled = false;
}
var newMode = VimBuffer.Mode.ModeKind;
VimTrace.TraceDebug(newMode.ToString());

if (oldMode != ModeKind.Insert)
{
handled = true;
}
//e.Handled = handled;
}

VimTrace.TraceInfo("VimKeyProcessor::KeyDown Handled = {0}", handled);

var status = Mac.StatusBar.GetStatus(VimBuffer);
var text = status.Text;
if(status.CaretPosition != 0)
if(VimBuffer.ModeKind == ModeKind.Command)
{
// Add a fake 'caret'
text = text.Insert(status.CaretPosition, "|");
Expand Down

0 comments on commit d8a3763

Please sign in to comment.