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:
parent
6392661663
commit
031f0ae50a
@ -216,7 +216,7 @@ void Shell::loop()
|
||||
|
||||
case KEY_UP_ARROW:
|
||||
// Go back one item in the command history.
|
||||
if (history && historyPosn < maxHistory) {
|
||||
if (!hideChars && history && historyPosn < maxHistory) {
|
||||
++historyPosn;
|
||||
changeHistory();
|
||||
}
|
||||
@ -224,7 +224,7 @@ void Shell::loop()
|
||||
|
||||
case KEY_DOWN_ARROW:
|
||||
// Go forward one item in the command history.
|
||||
if (history && historyPosn > 0) {
|
||||
if (!hideChars && history && historyPosn > 0) {
|
||||
--historyPosn;
|
||||
changeHistory();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user