summaryrefslogtreecommitdiff
path: root/Source/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications')
-rw-r--r--Source/Applications/Shell/Shell.ns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Applications/Shell/Shell.ns.cpp b/Source/Applications/Shell/Shell.ns.cpp
index cd091d5..d34c360 100644
--- a/Source/Applications/Shell/Shell.ns.cpp
+++ b/Source/Applications/Shell/Shell.ns.cpp
@@ -26,11 +26,12 @@ u32int run() {
while (1) {
outvt << "{" << cwd.getName() << "}: ";
String s = invt.readLine();
+ if (s.empty()) continue;
while (s[0] == WChar(" ") or s[0] == WChar("\t")) {
s = s.substr(1, s.size() - 1);
}
- if (s[0] == WChar("#")) continue;
if (s.empty()) continue;
+ if (s[0] == WChar("#")) continue;
//Parse string
Vector<String> cmd;