From c065238e757758d6ad8769e1f8a7909ed6875587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sat, 3 Nov 2018 15:01:19 +0100 Subject: [PATCH] Reliability improvement --- sdn.cpp | 6 ++++-- 1 file 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; }