commit | b98678a974914aaf1d00b575364c13a6446353bf | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Oct 19 15:18:44 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Oct 19 15:18:44 2019 +0200 |
tree | 2a9a00300b93f1899fef5c410fcde4a908119461 | |
parent | 15ee567809a9808693163dd7c357ef0c172ecc9e [diff] [blame] |
patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python output 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.
diff --git a/src/if_lua.c b/src/if_lua.c index 4c0eb42..31d9659 100644 --- a/src/if_lua.c +++ b/src/if_lua.c
@@ -1612,7 +1612,8 @@ lua_pop(L, 1); } luaL_pushresult(&b); - luaV_msg(L); + if (!got_int) + luaV_msg(L); return 0; }