mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
docs: fix typos (#27868)
Co-authored-by: ite-usagi <77563904+ite-usagi@users.noreply.github.com> Co-authored-by: v-sim <56476039+v-sim@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Quico Augustijn <quico.public@gmail.com> Co-authored-by: nhld <nahnera@gmail.com> Co-authored-by: francisco souza <108725+fsouza@users.noreply.github.com>
This commit is contained in:
@@ -968,7 +968,7 @@ String nvim_buf_get_name(Buffer buffer, Error *err)
|
||||
return cstr_as_string(buf->b_ffname);
|
||||
}
|
||||
|
||||
/// Sets the full file name for a buffer
|
||||
/// Sets the full file name for a buffer, like |:file_f|
|
||||
///
|
||||
/// @param buffer Buffer handle, or 0 for current buffer
|
||||
/// @param name Buffer name
|
||||
|
@@ -106,7 +106,7 @@ static void read_cb(uv_stream_t *uvstream, ssize_t cnt, const uv_buf_t *buf)
|
||||
// http://docs.libuv.org/en/latest/stream.html#c.uv_read_start.
|
||||
//
|
||||
// We don't need to do anything with the RBuffer because the next call
|
||||
// to `alloc_cb` will return the same unused pointer(`rbuffer_produced`
|
||||
// to `alloc_cb` will return the same unused pointer (`rbuffer_produced`
|
||||
// won't be called)
|
||||
if (cnt == UV_ENOBUFS || cnt == 0) {
|
||||
return;
|
||||
|
@@ -103,7 +103,7 @@ err:
|
||||
|
||||
/// Creates a WBuffer object for holding output data. Instances of this
|
||||
/// object can be reused across Stream instances, and the memory is freed
|
||||
/// automatically when no longer needed(it tracks the number of references
|
||||
/// automatically when no longer needed (it tracks the number of references
|
||||
/// internally)
|
||||
///
|
||||
/// @param data Data stored by the WBuffer
|
||||
@@ -111,7 +111,7 @@ err:
|
||||
/// @param refcount The number of references for the WBuffer. This will be used
|
||||
/// by Stream instances to decide when a WBuffer should be freed.
|
||||
/// @param cb Pointer to function that will be responsible for freeing
|
||||
/// the buffer data(passing 'free' will work as expected).
|
||||
/// the buffer data (passing `xfree` will work as expected).
|
||||
/// @return The allocated WBuffer instance
|
||||
WBuffer *wstream_new_buffer(char *data, size_t size, size_t refcount, wbuffer_data_finalizer cb)
|
||||
FUNC_ATTR_NONNULL_ARG(1)
|
||||
|
@@ -10,7 +10,7 @@ enum {
|
||||
/// character of up to 6 bytes, or one 16-bit character of up to three bytes
|
||||
/// plus six following composing characters of three bytes each.
|
||||
MB_MAXBYTES = 21,
|
||||
/// max length of an unicode char
|
||||
/// Maximum length of a Unicode character, excluding composing characters.
|
||||
MB_MAXCHAR = 6,
|
||||
};
|
||||
|
||||
|
@@ -351,8 +351,7 @@ static uint8_t check_multiclick(int code, int grid, int row, int col)
|
||||
return modifiers;
|
||||
}
|
||||
|
||||
// Mouse event handling code(Extract row/col if available and detect multiple
|
||||
// clicks)
|
||||
/// Mouse event handling code (extract row/col if available and detect multiple clicks)
|
||||
static unsigned handle_mouse_event(const char **ptr, uint8_t *buf, unsigned bufsize)
|
||||
{
|
||||
int mouse_code = 0;
|
||||
|
@@ -1117,8 +1117,8 @@ static void out_data_ring(char *output, size_t size)
|
||||
/// Continue to append data to last screen line.
|
||||
///
|
||||
/// @param output Data to append to screen lines.
|
||||
/// @param remaining Size of data.
|
||||
/// @param new_line If true, next data output will be on a new line.
|
||||
/// @param count Size of data.
|
||||
/// @param eof If true, there will be no more data output.
|
||||
static void out_data_append_to_screen(char *output, size_t *count, bool eof)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
@@ -1168,8 +1168,7 @@ static void out_data_cb(Stream *stream, RBuffer *buf, size_t count, void *data,
|
||||
rbuffer_consumed(buf, cnt);
|
||||
}
|
||||
|
||||
// Move remaining data to start of buffer, so the buffer can never
|
||||
// wrap around.
|
||||
// Move remaining data to start of buffer, so the buffer can never wrap around.
|
||||
rbuffer_reset(buf);
|
||||
}
|
||||
|
||||
|
@@ -4187,9 +4187,9 @@ msgid ""
|
||||
"&No\n"
|
||||
"&Cancel"
|
||||
msgstr ""
|
||||
"&Да\n"
|
||||
"&Нет\n"
|
||||
"О&тмена"
|
||||
"&Y Да\n"
|
||||
"&N Нет\n"
|
||||
"&C Отмена"
|
||||
|
||||
#: ../message.c:3045
|
||||
msgid ""
|
||||
|
Reference in New Issue
Block a user