summaryrefslogtreecommitdiff
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-19 15:18:44 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-19 15:18:44 +0200
commitb98678a974914aaf1d00b575364c13a6446353bf (patch)
tree2a9a00300b93f1899fef5c410fcde4a908119461 /src/if_lua.c
parent15ee567809a9808693163dd7c357ef0c172ecc9e (diff)
downloadvim-git-b98678a974914aaf1d00b575364c13a6446353bf.tar.gz
patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python outputv8.1.2179
Problem: Pressing "q" at the more prompt doesn't stop Python output. (Daniel Hahler) Solution: Check for got_int in writer(). (closes #5053) Also do this for Lua.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 4c0eb42a4..31d965923 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -1612,7 +1612,8 @@ luaV_print(lua_State *L)
lua_pop(L, 1);
}
luaL_pushresult(&b);
- luaV_msg(L);
+ if (!got_int)
+ luaV_msg(L);
return 0;
}