neovim-qt
neovim-qt copied to clipboard
Swap file being deleted on abrupt exit
Hi, looks like killing the neovim-qt process (for example, with kill -KILL {nvim-qt's pid}
) causes any swapfiles and thus unsaved changes to be deleted. This is in contrast to neovim itself. Could it be that nvim-qt somehow executes a graceful shutdown of neovim, even when neovim has unsaved files that should be causing a prompt for exit?
nvim-qt --version output:
NVIM-QT v0.2.17.9999 Build type: Release Compilation: -Wall -Wextra -Wno-unused-parameter -std=c++11 -Wfatal-errors Qt Version: 5.12.8 Environment: nvim: nvim args: --cmd let &rtp.=',/usr/local/share/nvim-qt/runtime' --cmd set termguicolors runtime: /usr/local/share/nvim-qt/runtime
NVIM v0.4.3 Build type: Release LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-gOb7vg/neovim-0.4.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-gOb7vg/neovim-0.4.3/build/config -I/build/neovim-gOb7vg/neovim-0.4.3/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-gOb7vg/neovim-0.4.3/build/src/nvim/auto -I/build/neovim-gOb7vg/neovim-0.4.3/build/include Compiled by [email protected]
I can confirm this behavior on Windows/Linux running master
.
Repro Steps:
- Start
nvim
ornvim-qt
- Make unsaved changes.
- Note location of swap file with
:sw
- Kill the process with
taskkill /f /im nvim-qt.exe
orkillall nvim-qt