mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
docs: small fixes (#25585)
Co-authored-by: tmummert <doczook@gmx.de> Co-authored-by: parikshit adhikari <parikshitadhikari@gmail.com>
This commit is contained in:
@@ -359,7 +359,7 @@ void nvim_buf_set_lines(uint64_t channel_id, Buffer buffer, Integer start, Integ
|
||||
return;
|
||||
}
|
||||
|
||||
// loaded buffer first if it's not loaded
|
||||
// load buffer first if it's not loaded
|
||||
if (buf->b_ml.ml_mfp == NULL) {
|
||||
if (!buf_ensure_loaded(buf)) {
|
||||
api_set_error(err, kErrorTypeException, "Failed to load buffer");
|
||||
@@ -541,7 +541,7 @@ void nvim_buf_set_text(uint64_t channel_id, Buffer buffer, Integer start_row, In
|
||||
return;
|
||||
}
|
||||
|
||||
// loaded buffer first if it's not loaded
|
||||
// load buffer first if it's not loaded
|
||||
if (buf->b_ml.ml_mfp == NULL) {
|
||||
if (!buf_ensure_loaded(buf)) {
|
||||
api_set_error(err, kErrorTypeException, "Failed to load buffer");
|
||||
|
@@ -135,7 +135,7 @@
|
||||
/// - "solid": Adds padding by a single whitespace cell.
|
||||
/// - "shadow": A drop shadow effect by blending with the background.
|
||||
/// - If it is an array, it should have a length of eight or any divisor of
|
||||
/// eight. The array will specifify the eight chars building up the border
|
||||
/// eight. The array will specify the eight chars building up the border
|
||||
/// in a clockwise fashion starting with the top-left corner. As an
|
||||
/// example, the double box style could be specified as
|
||||
/// [ "╔", "═" ,"╗", "║", "╝", "═", "╚", "║" ].
|
||||
|
@@ -3396,10 +3396,9 @@ linenr_T diff_lnum_win(linenr_T lnum, win_T *wp)
|
||||
return n;
|
||||
}
|
||||
|
||||
///
|
||||
/// Handle an ED style diff line.
|
||||
/// Return FAIL if the line does not contain diff info.
|
||||
///
|
||||
/// @return FAIL if the line does not contain diff info.
|
||||
static int parse_diff_ed(char *line, diffhunk_T *hunk)
|
||||
{
|
||||
int l1, l2;
|
||||
|
@@ -10184,7 +10184,7 @@ M.funcs = {
|
||||
{address} should be the path of a local domain socket (on
|
||||
unix) or named pipe (on Windows). If {mode} is "tcp" then
|
||||
{address} should be of the form "host:port" where the host
|
||||
should be an ip adderess or host name, and port the port
|
||||
should be an ip address or host name, and port the port
|
||||
number.
|
||||
|
||||
For "pipe" mode, see |luv-pipe-handle|. For "tcp" mode, see
|
||||
|
@@ -771,7 +771,7 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int col, int endcol
|
||||
ui_line(grid, row, start_pos, coloff + end_dirty, coloff + clear_end,
|
||||
bg_attr, wrap);
|
||||
} else if (grid->dirty_col) {
|
||||
// TODO(bfredl): really get rid of the extra psuedo terminal in message.c
|
||||
// TODO(bfredl): really get rid of the extra pseudo terminal in message.c
|
||||
// by using a linebuf_char copy for "throttled message line"
|
||||
if (clear_end > grid->dirty_col[row]) {
|
||||
grid->dirty_col[row] = clear_end;
|
||||
|
@@ -36,7 +36,7 @@ EXTERN colnr_T *linebuf_vcol INIT( = NULL);
|
||||
/// Put a ASCII character in a screen cell.
|
||||
///
|
||||
/// If `x` is a compile time constant, schar_from_ascii(x) will also be.
|
||||
/// But the specific value varies per plattform.
|
||||
/// But the specific value varies per platform.
|
||||
#ifdef ORDER_BIG_ENDIAN
|
||||
# define schar_from_ascii(x) ((schar_T)((x) << 24))
|
||||
#else
|
||||
|
@@ -880,7 +880,7 @@ int get_mouse_button(int code, bool *is_click, bool *is_drag)
|
||||
/// REPTERM_DO_LT also translate <lt>
|
||||
/// REPTERM_NO_SPECIAL do not accept <key> notation
|
||||
/// REPTERM_NO_SIMPLIFY do not simplify <C-H> into 0x08, etc.
|
||||
/// @param[out] did_simplify set when some <C-H> code was simplied, unless it is NULL.
|
||||
/// @param[out] did_simplify set when some <C-H> code was simplified, unless it is NULL.
|
||||
/// @param[in] cpo_flags Relevant flags derived from p_cpo, see CPO_TO_CPO_FLAGS.
|
||||
///
|
||||
/// @return The same as what `*bufp` is set to.
|
||||
|
@@ -6,7 +6,7 @@
|
||||
// `String key` lookup keys don't need to be NULL terminated, but they
|
||||
// must not contain embedded NUL:s. When reading a key from set->keys, they
|
||||
// are always NUL terminated, though. Thus, it is enough to store an index into
|
||||
// this array, and use strlen(), to retrive an interned key.
|
||||
// this array, and use strlen(), to retrieve an interned key.
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
|
@@ -74,7 +74,7 @@ char *get_mess_lang(void)
|
||||
/// Get the language used for messages from the environment.
|
||||
///
|
||||
/// This uses LC_MESSAGES when available, which it is for most systems we build for
|
||||
/// except for windows. Then fallback to get the value from the envirionment
|
||||
/// except for windows. Then fallback to get the value from the environment
|
||||
/// ourselves, and use LC_CTYPE as a last resort.
|
||||
static char *get_mess_env(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user