aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/lua/executor.c11
-rw-r--r--src/nvim/terminal.c3
2 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index d1b83a6b4d..724a3d77e6 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -125,12 +125,11 @@ lua_State *get_global_lstate(void)
return global_lstate;
}
-/// get error on top of stack as a string
+/// Gets the Lua error at top of stack as a string, possibly modifying it in-place (but doesn't
+/// change stack height).
///
-/// Might alter the top value on stack in place (but doesn't change stack height)
-///
-/// "error" points to memory on the lua stack, use
-/// or duplicate the string before using "lstate" again
+/// The returned string points to memory on the Lua stack. Use or duplicate it before using
+/// `lstate` again.
///
/// @param[out] len length of error (can be NULL)
static const char *nlua_get_error(lua_State *lstate, size_t *len)
@@ -147,7 +146,7 @@ static const char *nlua_get_error(lua_State *lstate, size_t *len)
return lua_tolstring(lstate, -1, len);
}
-/// Convert lua error into a Vim error message
+/// Converts a Lua error into a Vim error message.
///
/// @param lstate Lua interpreter state.
/// @param[in] msg Message base, must contain one `%.*s`.
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index ed757a63f9..2ca71e6dde 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -170,7 +170,8 @@ struct terminal {
struct {
int row, col;
int shape;
- bool visible;
+ bool visible; ///< Terminal wants to show cursor.
+ ///< `TerminalState.cursor_visible` indicates whether it is actually shown.
bool blink;
} cursor;