Mercurial > vim
comparison src/if_lua.c @ 18370:026034963159 v8.1.2179
patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python output
Commit: https://github.com/vim/vim/commit/b98678a974914aaf1d00b575364c13a6446353bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 19 15:18:44 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Oct 2019 15:30:04 +0200 |
parents | 1d30eb64a7a2 |
children | f0f9692d4487 |
comparison
equal
deleted
inserted
replaced
18369:dbe92b7679db | 18370:026034963159 |
---|---|
1610 if (i > 1) luaL_addchar(&b, ' '); /* use space instead of tab */ | 1610 if (i > 1) luaL_addchar(&b, ' '); /* use space instead of tab */ |
1611 luaV_addlstring(&b, s, l, 0); | 1611 luaV_addlstring(&b, s, l, 0); |
1612 lua_pop(L, 1); | 1612 lua_pop(L, 1); |
1613 } | 1613 } |
1614 luaL_pushresult(&b); | 1614 luaL_pushresult(&b); |
1615 luaV_msg(L); | 1615 if (!got_int) |
1616 luaV_msg(L); | |
1616 return 0; | 1617 return 0; |
1617 } | 1618 } |
1618 | 1619 |
1619 static int | 1620 static int |
1620 luaV_debug(lua_State *L) | 1621 luaV_debug(lua_State *L) |