From b98678a974914aaf1d00b575364c13a6446353bf Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 19 Oct 2019 15:18:44 +0200 Subject: 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. --- src/if_lua.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/if_lua.c') diff --git a/src/if_lua.c b/src/if_lua.c index 4c0eb42a49..31d9659236 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; } -- cgit v1.2.3