loader: loader_lua can run command_more twice

When we quit pager, the return value 1 is returned and command_more()
interprets it as error.

when lua loader gets error from command, it will try to
interpret it once more, so we get the same file shown once more.

There is no reason why we should return error from command_more().

MFC after:	1 week
This commit is contained in:
Toomas Soome 2021-08-21 21:17:18 +03:00
parent 3a92927bb6
commit 7b0d05d56d

View File

@ -484,10 +484,7 @@ command_more(int argc, char *argv[])
}
pager_close();
if (res == 0)
return (CMD_OK);
else
return (CMD_ERROR);
return (CMD_OK);
}
static int