1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

No history navigation when hideChars is active

This commit is contained in:
Rhys Weatherley 2016-03-09 19:40:03 +10:00
parent 6392661663
commit 031f0ae50a

View File

@ -216,7 +216,7 @@ void Shell::loop()
case KEY_UP_ARROW: case KEY_UP_ARROW:
// Go back one item in the command history. // Go back one item in the command history.
if (history && historyPosn < maxHistory) { if (!hideChars && history && historyPosn < maxHistory) {
++historyPosn; ++historyPosn;
changeHistory(); changeHistory();
} }
@ -224,7 +224,7 @@ void Shell::loop()
case KEY_DOWN_ARROW: case KEY_DOWN_ARROW:
// Go forward one item in the command history. // Go forward one item in the command history.
if (history && historyPosn > 0) { if (!hideChars && history && historyPosn > 0) {
--historyPosn; --historyPosn;
changeHistory(); changeHistory();
} }