aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/json.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-21 10:18:37 +0200
committerbfredl <bjorn.linse@gmail.com>2023-09-21 10:18:37 +0200
commit911f3d962358bb032b55e9984d0b25ffc522ff49 (patch)
treea21802a601c1aa4953030d5e24a2ed04b95ab37b /runtime/lua/vim/_meta/json.lua
parentf246cf029fb4e7a07788adfa19f91608db7bd816 (diff)
downloadrneovim-911f3d962358bb032b55e9984d0b25ffc522ff49.tar.gz
rneovim-911f3d962358bb032b55e9984d0b25ffc522ff49.tar.bz2
rneovim-911f3d962358bb032b55e9984d0b25ffc522ff49.zip
fix(tui): don't overwrite an assertion faliure message on exit
If nvim exited with nonzero status this is for one of the two reasons - `:cquit` was invoked. This is used by users and plugins to communicate a result, like a nonzero status will fail a `git commit` operation - There was an internal error or deadly signal. in this case an error message was likely written to stderr or to the screen. In the latter case, the error message was often hidden by the TUI exiting altscreen mode, which erases all visible terminal text. This change prevents this in the latter case, while still cleaning up the terminal properly when `:cquit` was deliberatily invoked. Other cleanup like exiting mouse mode and raw mode is still done.
Diffstat (limited to 'runtime/lua/vim/_meta/json.lua')
0 files changed, 0 insertions, 0 deletions