mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
docs: small fixes (#26154)
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#endif
|
||||
|
||||
// TODO(bfredl): These should maybe be per-buffer, so that all resources
|
||||
// asssociated with a buffer can be freed when the buffer is unloaded.
|
||||
// associated with a buffer can be freed when the buffer is unloaded.
|
||||
kvec_t(DecorSignHighlight) decor_items = KV_INITIAL_VALUE;
|
||||
uint32_t decor_freelist = UINT32_MAX;
|
||||
|
||||
|
@@ -7440,7 +7440,7 @@ static void f_setenv(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
char valbuf[NUMBUFLEN];
|
||||
const char *name = tv_get_string_buf(&argvars[0], namebuf);
|
||||
|
||||
// seting an environment variable may be dangerous, e.g. you could
|
||||
// setting an environment variable may be dangerous, e.g. you could
|
||||
// setenv GCONV_PATH=/tmp and then have iconv() unexpectedly call
|
||||
// a shell command using some shared library:
|
||||
if (check_secure()) {
|
||||
|
@@ -115,7 +115,7 @@ lua_State *get_global_lstate(void)
|
||||
/// Convert lua error into a Vim error message
|
||||
///
|
||||
/// @param lstate Lua interpreter state.
|
||||
/// @param[in] msg Message base, must contain one `%s`.
|
||||
/// @param[in] msg Message base, must contain one `%*s`.
|
||||
void nlua_error(lua_State *const lstate, const char *const msg)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
|
@@ -48,7 +48,7 @@ typedef struct {
|
||||
} MarkTreeIter;
|
||||
|
||||
#define marktree_itr_valid(itr) ((itr)->x != NULL)
|
||||
// accces raw key: flags in MT_FLAG_EXTERNAL_MASK and decor_data are safe to modify.
|
||||
// access raw key: flags in MT_FLAG_EXTERNAL_MASK and decor_data are safe to modify.
|
||||
#define mt_itr_rawkey(itr) ((itr)->x->key[(itr)->i])
|
||||
|
||||
// Internal storage
|
||||
|
Reference in New Issue
Block a user