aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 3ba4d0d70c..bd06123d5f 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -357,7 +357,7 @@ static int nlua_wait(lua_State *lstate)
{
intptr_t timeout = luaL_checkinteger(lstate, 1);
if (timeout < 0) {
- return luaL_error(lstate, "timeout must be > 0");
+ return luaL_error(lstate, "timeout must be >= 0");
}
int lua_top = lua_gettop(lstate);
@@ -384,7 +384,7 @@ static int nlua_wait(lua_State *lstate)
if (lua_top >= 3 && !lua_isnil(lstate, 3)) {
interval = luaL_checkinteger(lstate, 3);
if (interval < 0) {
- return luaL_error(lstate, "interval must be > 0");
+ return luaL_error(lstate, "interval must be >= 0");
}
}