mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
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. Co-authored-by: erw7 <erw7.github@gmail.com>
This commit is contained in:
@@ -285,6 +285,12 @@ int main(int argc, char **argv)
|
|||||||
fname = get_fname(¶ms, cwd);
|
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");
|
TIME_MSG("expanding arguments");
|
||||||
|
|
||||||
if (params.diff_mode && params.window_count == -1)
|
if (params.diff_mode && params.window_count == -1)
|
||||||
@@ -958,7 +964,6 @@ static void command_line_scan(mparm_T *parmp)
|
|||||||
case 'r': // "-r" recovery mode
|
case 'r': // "-r" recovery mode
|
||||||
case 'L': { // "-L" recovery mode
|
case 'L': { // "-L" recovery mode
|
||||||
recoverymode = 1;
|
recoverymode = 1;
|
||||||
headless_mode = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 's': {
|
case 's': {
|
||||||
|
Reference in New Issue
Block a user