mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00

committed by
Justin M. Keyes

parent
86c4a87fe9
commit
001e69cd46
@@ -1225,7 +1225,7 @@ GENERATE_INDEX_FUNCTION(Tabpage)
|
||||
|
||||
#undef GENERATE_INDEX_FUNCTION
|
||||
|
||||
/// Record some auxilary values in vim module
|
||||
/// Record some auxiliary values in vim module
|
||||
///
|
||||
/// Assumes that module table is on top of the stack.
|
||||
///
|
||||
|
@@ -4,7 +4,7 @@
|
||||
// Implements extended marks for plugins. Each mark exists in a btree of
|
||||
// lines containing btrees of columns.
|
||||
//
|
||||
// The btree provides efficent range lookups.
|
||||
// The btree provides efficient range lookups.
|
||||
// A map of pointers to the marks is used for fast lookup by mark id.
|
||||
//
|
||||
// Marks are moved by calls to: extmark_col_adjust, extmark_adjust, or
|
||||
@@ -300,7 +300,7 @@ Extmark *extmark_from_pos(buf_T *buf, uint64_t ns, linenr_T lnum, colnr_T col)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Returns an avaliable id in a namespace
|
||||
// Returns an available id in a namespace
|
||||
uint64_t extmark_free_id_get(buf_T *buf, uint64_t ns)
|
||||
{
|
||||
if (!buf->b_extmark_ns) {
|
||||
|
@@ -412,7 +412,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||
fseek(fd, 0L, SEEK_SET);
|
||||
buffer = xmalloc(len + 1);
|
||||
// fread() doesn't terminate buffer with NUL;
|
||||
// appropiate termination (not always NUL) is done below.
|
||||
// appropriate termination (not always NUL) is done below.
|
||||
size_t readlen = fread((char *)buffer, 1, len, fd);
|
||||
fclose(fd);
|
||||
os_remove((char *)tempname);
|
||||
|
@@ -124,7 +124,7 @@
|
||||
|
||||
|
||||
// temporary buffer for rendering a single screenline, so it can be
|
||||
// comparared with previous contents to calulate smallest delta.
|
||||
// comparared with previous contents to calculate smallest delta.
|
||||
static size_t linebuf_size = 0;
|
||||
static schar_T *linebuf_char = NULL;
|
||||
static sattr_T *linebuf_attr = NULL;
|
||||
|
@@ -7316,7 +7316,7 @@ static void set_hl_attr(int idx)
|
||||
|
||||
sgp->sg_attr = hl_get_syn_attr(idx+1, at_en);
|
||||
|
||||
// a cursor style uses this syn_id, make sure its atribute is updated.
|
||||
// a cursor style uses this syn_id, make sure its attribute is updated.
|
||||
if (cursor_mode_uses_syn_id(idx+1)) {
|
||||
ui_mode_info_set();
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ func Test_search_cmdline()
|
||||
call feedkeys("/the".repeat("\<C-G>", 6)."\<cr>", 'tx')
|
||||
call assert_equal(' 8 them', getline('.'))
|
||||
:1
|
||||
" eigth match
|
||||
" eighth match
|
||||
call feedkeys("/the".repeat("\<C-G>", 7)."\<cr>", 'tx')
|
||||
call assert_equal(' 9 these', getline('.'))
|
||||
:1
|
||||
@@ -99,7 +99,7 @@ func Test_search_cmdline()
|
||||
call feedkeys("/the".repeat("\<C-G>", 6)."\<cr>", 'tx')
|
||||
call assert_equal(' 8 them', getline('.'))
|
||||
:1
|
||||
" eigth match
|
||||
" eighth match
|
||||
call feedkeys("/the".repeat("\<C-G>", 7)."\<cr>", 'tx')
|
||||
call assert_equal(' 9 these', getline('.'))
|
||||
:1
|
||||
|
@@ -626,7 +626,7 @@ static void ui_comp_grid_scroll(UI *ui, Integer grid, Integer top,
|
||||
if (covered || curgrid->blending) {
|
||||
// TODO(bfredl):
|
||||
// 1. check if rectangles actually overlap
|
||||
// 2. calulate subareas that can scroll.
|
||||
// 2. calculate subareas that can scroll.
|
||||
compose_debug(top, bot, left, right, dbghl_recompose, true);
|
||||
for (int r = (int)(top + MAX(-rows, 0)); r < bot - MAX(rows, 0); r++) {
|
||||
// TODO(bfredl): workaround for win_update() performing two scrolls in a
|
||||
|
Reference in New Issue
Block a user