main.c: fix hang issue with recoverymode (#12496)
In the case of recoverymode, the headlessmode was true, causing the UI to hang without starting. Fix this problem by setting headlessmode to true for List swap files only.
This commit is contained in:
parent
8f30753aa1
commit
1619410a05
|
@ -266,6 +266,12 @@ int main(int argc, char **argv)
|
|||
fname = get_fname(¶ms, cwd);
|
||||
}
|
||||
|
||||
// Recovery mode without a file name: List swap files.
|
||||
// In this case, no UI is needed.
|
||||
if (recoverymode && fname == NULL) {
|
||||
headless_mode = true;
|
||||
}
|
||||
|
||||
TIME_MSG("expanding arguments");
|
||||
|
||||
if (params.diff_mode && params.window_count == -1)
|
||||
|
@ -954,7 +960,6 @@ static void command_line_scan(mparm_T *parmp)
|
|||
case 'r': // "-r" recovery mode
|
||||
case 'L': { // "-L" recovery mode
|
||||
recoverymode = 1;
|
||||
headless_mode = true;
|
||||
break;
|
||||
}
|
||||
case 's': {
|
||||
|
|
Loading…
Reference in New Issue