mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: small fixes (#26154)
This commit is contained in:
@@ -113,7 +113,7 @@ should be stated explicitly and publicly.
|
|||||||
Third-party dependencies
|
Third-party dependencies
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
These "bundled" dependencies can be updated by bumping their versions in `cmake.deps/CMakeLists.txt`.
|
These "bundled" dependencies can be updated by bumping their versions in `cmake.deps/deps.txt`.
|
||||||
Some can be auto-bumped by `scripts/bump_deps.lua`.
|
Some can be auto-bumped by `scripts/bump_deps.lua`.
|
||||||
|
|
||||||
* [LuaJIT](https://github.com/LuaJIT/LuaJIT)
|
* [LuaJIT](https://github.com/LuaJIT/LuaJIT)
|
||||||
|
@@ -162,8 +162,8 @@ endfunction()
|
|||||||
# cmake -B build
|
# cmake -B build
|
||||||
# cmake --build build --config Release
|
# cmake --build build --config Release
|
||||||
#
|
#
|
||||||
# Passing CMAKE_BUILD_TYPE for multi-config generators will now not only
|
# Passing CMAKE_BUILD_TYPE for multi-config generators will not only not be
|
||||||
# not be used, but also generate a warning for the user.
|
# used, but also generate a warning for the user.
|
||||||
function(set_default_buildtype)
|
function(set_default_buildtype)
|
||||||
set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo)
|
set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo)
|
||||||
|
|
||||||
|
10
runtime/doc/builtin.txt
generated
10
runtime/doc/builtin.txt
generated
@@ -6998,11 +6998,11 @@ sign_place({id}, {group}, {name}, {buf} [, {dict}]) *sign_place()*
|
|||||||
similar to the |:sign-place| command.
|
similar to the |:sign-place| command.
|
||||||
|
|
||||||
If the sign identifier {id} is zero, then a new identifier is
|
If the sign identifier {id} is zero, then a new identifier is
|
||||||
allocated (first available id in a buffer). Otherwise the
|
allocated. Otherwise the specified number is used. {group} is
|
||||||
specified number is used. {group} is the sign group name. To use
|
the sign group name. To use the global sign group, use an
|
||||||
the global sign group, use an empty string. {group} functions
|
empty string. {group} functions as a namespace for {id}, thus
|
||||||
as a namespace for {id}, thus two groups can use the same IDs.
|
two groups can use the same IDs. Refer to |sign-identifier|
|
||||||
Refer to |sign-identifier| and |sign-group| for more information.
|
and |sign-group| for more information.
|
||||||
|
|
||||||
{name} refers to a defined sign.
|
{name} refers to a defined sign.
|
||||||
{buf} refers to a buffer name or number. For the accepted
|
{buf} refers to a buffer name or number. For the accepted
|
||||||
|
@@ -54,9 +54,9 @@ Each placed sign is identified by a number called the sign identifier. This
|
|||||||
identifier is used to jump to the sign or to remove the sign. The identifier
|
identifier is used to jump to the sign or to remove the sign. The identifier
|
||||||
is assigned when placing the sign using the |:sign-place| command or the
|
is assigned when placing the sign using the |:sign-place| command or the
|
||||||
|sign_place()| function. Each sign identifier should be a unique number (per
|
|sign_place()| function. Each sign identifier should be a unique number (per
|
||||||
buffer). Placing the same identifier twice will move the previously placed sign.
|
buffer). Placing the same identifier twice will move the previously placed
|
||||||
The |sign_place()| function can be called with a zero sign identifier to allocate
|
sign. The |sign_place()| function can be called with a zero sign identifier to
|
||||||
the next available identifier.
|
allocate the next available identifier.
|
||||||
|
|
||||||
*sign-group*
|
*sign-group*
|
||||||
Each placed sign can be assigned to either the global group or a named group.
|
Each placed sign can be assigned to either the global group or a named group.
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO(bfredl): These should maybe be per-buffer, so that all resources
|
// 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;
|
kvec_t(DecorSignHighlight) decor_items = KV_INITIAL_VALUE;
|
||||||
uint32_t decor_freelist = UINT32_MAX;
|
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];
|
char valbuf[NUMBUFLEN];
|
||||||
const char *name = tv_get_string_buf(&argvars[0], namebuf);
|
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
|
// setenv GCONV_PATH=/tmp and then have iconv() unexpectedly call
|
||||||
// a shell command using some shared library:
|
// a shell command using some shared library:
|
||||||
if (check_secure()) {
|
if (check_secure()) {
|
||||||
|
@@ -115,7 +115,7 @@ lua_State *get_global_lstate(void)
|
|||||||
/// Convert lua error into a Vim error message
|
/// Convert lua error into a Vim error message
|
||||||
///
|
///
|
||||||
/// @param lstate Lua interpreter state.
|
/// @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)
|
void nlua_error(lua_State *const lstate, const char *const msg)
|
||||||
FUNC_ATTR_NONNULL_ALL
|
FUNC_ATTR_NONNULL_ALL
|
||||||
{
|
{
|
||||||
|
@@ -48,7 +48,7 @@ typedef struct {
|
|||||||
} MarkTreeIter;
|
} MarkTreeIter;
|
||||||
|
|
||||||
#define marktree_itr_valid(itr) ((itr)->x != NULL)
|
#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])
|
#define mt_itr_rawkey(itr) ((itr)->x->key[(itr)->i])
|
||||||
|
|
||||||
// Internal storage
|
// Internal storage
|
||||||
|
Reference in New Issue
Block a user