aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-11-03 15:01:19 +0100
committerPřemysl Janouch <p@janouch.name>2018-11-03 15:01:19 +0100
commitc065238e757758d6ad8769e1f8a7909ed6875587 (patch)
tree1d637e5a7a7a8380c9205f476c8e26ba8832e52d
parent579e4c9a34b98059530f08133b77f4ab44a60e91 (diff)
downloadsdn-c065238e757758d6ad8769e1f8a7909ed6875587.tar.gz
sdn-c065238e757758d6ad8769e1f8a7909ed6875587.tar.xz
sdn-c065238e757758d6ad8769e1f8a7909ed6875587.zip
Reliability improvement
-rw-r--r--sdn.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdn.cpp b/sdn.cpp
index 3084248..07ba5e3 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -1430,7 +1430,9 @@ int main (int argc, char *argv[]) {
if (g.cwd != g.start_dir && !g.no_chdir)
cout << "local cd=" << shell_escape (g.cwd) << endl;
- if (!g.chosen.empty ())
- cout << "local insert=" << shell_escape (g.chosen) << endl;
+ else
+ cout << "local cd=" << endl;
+
+ cout << "local insert=" << shell_escape (g.chosen) << endl;
return 0;
}