mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix #918: picker mode broken
This commit is contained in:
parent
b0aa1fe379
commit
9c218d41e8
|
@ -5993,9 +5993,11 @@ begin:
|
||||||
setdirwatch();
|
setdirwatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!g_state.picker) {
|
||||||
/* Set terminal window title */
|
/* Set terminal window title */
|
||||||
printf("\033]2;%s (%s)\007", xbasename(path), path);
|
printf("\033]2;%s (%s)\007", xbasename(path), path);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
}
|
||||||
|
|
||||||
if (g_state.selmode && lastdir[0])
|
if (g_state.selmode && lastdir[0])
|
||||||
lastappendpos = selbufpos;
|
lastappendpos = selbufpos;
|
||||||
|
@ -7587,8 +7589,10 @@ static bool set_tmp_path(void)
|
||||||
|
|
||||||
static void cleanup(void)
|
static void cleanup(void)
|
||||||
{
|
{
|
||||||
|
if (!g_state.picker) {
|
||||||
printf("\033[23;0t"); /* reset terminal window title */
|
printf("\033[23;0t"); /* reset terminal window title */
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
}
|
||||||
free(selpath);
|
free(selpath);
|
||||||
free(plgpath);
|
free(plgpath);
|
||||||
free(cfgpath);
|
free(cfgpath);
|
||||||
|
@ -8003,9 +8007,11 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!g_state.picker) {
|
||||||
/* Save terminal window title */
|
/* Save terminal window title */
|
||||||
printf("\033[22;0t");
|
printf("\033[22;0t");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef NOMOUSE
|
#ifndef NOMOUSE
|
||||||
if (!initcurses(&mask))
|
if (!initcurses(&mask))
|
||||||
|
|
Loading…
Reference in a new issue