aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2016-12-01 15:00:58 +0100
committerGitHub <noreply@github.com>2016-12-01 15:00:58 +0100
commitd2e8c76dc22460ddfde80477dd93aab3d5866506 (patch)
tree4eb42bd2ae42fe8b683b3a4ea5ecb1b1a788183f /src/nvim/main.c
parent5194e3bc458eaa43871398bacea01e2d8b30b7e6 (diff)
parentdf2ffe48ce71ec2653bd74a566a8f4ef585e1d55 (diff)
downloadrneovim-d2e8c76dc22460ddfde80477dd93aab3d5866506.tar.gz
rneovim-d2e8c76dc22460ddfde80477dd93aab3d5866506.tar.bz2
rneovim-d2e8c76dc22460ddfde80477dd93aab3d5866506.zip
Merge PR #5651 from mhinz/vv/exitval
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 1bd622bdba..9b9976ac0a 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -557,6 +557,8 @@ void getout(int exitval)
if (exmode_active)
exitval += ex_exitval;
+ set_vim_var_nr(VV_EXITING, exitval);
+
/* Position the cursor on the last screen line, below all the text */
ui_cursor_goto((int)Rows - 1, 0);