aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-12-11 15:50:59 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-12-11 15:50:59 +0100
commit40c387aca214f701cd316c63b290ba7f35abbe3a (patch)
tree9b9434695b2016b0f6b57c0f3ced260ff1f22a37 /vis-lua.c
parent8c5205ad56f0bd76d3f9cd4a85eba9e01d071228 (diff)
parent8000440b2de276f6ee65f3f369b8622478a0afb2 (diff)
downloadvis-40c387aca214f701cd316c63b290ba7f35abbe3a.tar.gz
vis-40c387aca214f701cd316c63b290ba7f35abbe3a.tar.xz
Merge branch 'fix-typos' of https://github.com/moesasji/vis
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 753aa7d..f3bd7d0 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -331,7 +331,7 @@ const char *obj_type_get(lua_State *L) {
lua_getfield(L, LUA_REGISTRYINDEX, "vis.types");
lua_getmetatable(L, -2);
lua_gettable(L, -2);
- // XXX: in theory string might become invalid when poped from stack
+ // XXX: in theory string might become invalid when popped from stack
const char *type = lua_tostring(L, -1);
lua_pop(L, 2);
return type;
@@ -758,7 +758,7 @@ static int command(lua_State *L) {
* Display a short message.
*
* The single line message will be displayed at the bottom of
- * the scren and automatically hidden once a key is pressed.
+ * the screen and automatically hidden once a key is pressed.
*
* @function info
* @tparam string message the message to display
@@ -1309,7 +1309,7 @@ static int replace(lua_State *L) {
* eventually hands over control to the editor core. The exit status
* of the most recent call is used.
*
- * All unsaved chanes will be lost!
+ * All unsaved changes will be lost!
*
* @function exit
* @tparam int code the exit status returned to the operating system
@@ -2912,7 +2912,7 @@ void vis_lua_quit(Vis *vis) {
* Input key event in either input or replace mode.
* @function input
* @tparam string key
- * @treturn bool whether the key was cosumed or not
+ * @treturn bool whether the key was consumed or not
*/
static bool vis_lua_input(Vis *vis, const char *key, size_t len) {
lua_State *L = vis->lua;