]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #974: picker mode broken (#975)
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>
Wed, 28 Apr 2021 06:23:13 +0000 (08:23 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 06:23:13 +0000 (11:53 +0530)
Co-authored-by: PiƱa Colada <engineerarun@gmail.com>
src/nnn.c

index a89689e515d1187a30b64752f20168f9f8fc0a7e..9ad2eb431e7ef31ee42389e3f23a98221e9451ba 100644 (file)
--- 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);