From 802a7794aec1a854e5f5a53c4217c1f5260b0c65 Mon Sep 17 00:00:00 2001 From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Wed, 28 Apr 2021 08:23:13 +0200 Subject: [PATCH] Fix #974: picker mode broken (#975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: PiƱa Colada --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index a89689e5..9ad2eb43 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5935,7 +5935,7 @@ begin: } #ifndef NOX11 - if (cfg.x11) { + if (cfg.x11 && !g_state.picker) { /* Set terminal window title */ r = set_tilde_in_path(path); @@ -7540,7 +7540,7 @@ static bool set_tmp_path(void) static void cleanup(void) { #ifndef NOX11 - if (cfg.x11) { + if (cfg.x11 && !g_state.picker) { printf("\033[23;0t"); /* reset terminal window title */ fflush(stdout); } @@ -7961,7 +7961,7 @@ int main(int argc, char *argv[]) #endif #ifndef NOX11 - if (cfg.x11) { + if (cfg.x11 && !g_state.picker) { /* Save terminal window title */ printf("\033[22;0t"); fflush(stdout);