From 031f0ae50a497071450a7d61d52115d6d72fe595 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Wed, 9 Mar 2016 19:40:03 +1000 Subject: [PATCH] No history navigation when hideChars is active --- libraries/Terminal/Shell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Terminal/Shell.cpp b/libraries/Terminal/Shell.cpp index bcfb4ae6..176cfad7 100644 --- a/libraries/Terminal/Shell.cpp +++ b/libraries/Terminal/Shell.cpp @@ -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(); }