aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMoesasji <miyamoto.31b@gmail.com>2020-12-10 18:25:37 +0000
committerMoesasji <miyamoto.31b@gmail.com>2020-12-10 18:25:37 +0000
commit8000440b2de276f6ee65f3f369b8622478a0afb2 (patch)
treeaee1ce6714e9188038b2cd9bf0cf9ec2457e8f20 /vis-lua.c
parent247b799b7cd272f20b2c6f9b4e60bf8b57775985 (diff)
downloadvis-8000440b2de276f6ee65f3f369b8622478a0afb2.tar.gz
vis-8000440b2de276f6ee65f3f369b8622478a0afb2.tar.xz
fix typos in comments
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;