Skip to content

Commit

Permalink
Remove Ding on delete backwards at start of line
Browse files Browse the repository at this point in the history
We don't need to emulate GNU readline perfectly - and there are many
complaints about this particular ding, so I've removed it.

Fix #422
  • Loading branch information
lzybkr committed Jul 25, 2017
1 parent 1cf7a00 commit 6c7c3fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions PSReadLine/BasicEditing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ public static void BackwardDeleteChar(ConsoleKeyInfo? key = null, object arg = n
_singleton._current = startDeleteIndex;
_singleton.Render();
}
else
{
Ding();
}
}

private void DeleteCharImpl(int qty, bool orExit)
Expand Down
2 changes: 1 addition & 1 deletion UnitTestPSReadLine/BasicEditingTest.VI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void ViTestDelete()
"x", CheckThat(() => AssertCursorLeftIs(0))
));

TestMustDing("0123", Keys(
Test("0123", Keys(
"0123", _.Escape,
"0X", CheckThat(() => AssertCursorLeftIs(0))
));
Expand Down

0 comments on commit 6c7c3fd

Please sign in to comment.