mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.0164 (#7368)
Problem: Outdated and misplaced comments.
Solution: Fix the comments.
caa55b65c2
This commit is contained in:
parent
e565fc2294
commit
1663599beb
@ -762,7 +762,7 @@ bool vim_isIDc(int c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Check that "c" is a keyword character:
|
/// Check that "c" is a keyword character:
|
||||||
/// Letters and characters from 'iskeyword' option for current buffer.
|
/// Letters and characters from 'iskeyword' option for the current buffer.
|
||||||
/// For multi-byte characters mb_get_class() is used (builtin rules).
|
/// For multi-byte characters mb_get_class() is used (builtin rules).
|
||||||
///
|
///
|
||||||
/// @param c character to check
|
/// @param c character to check
|
||||||
|
@ -17528,7 +17528,7 @@ static void f_winsaveview(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
tv_dict_add_nr(dict, S_LEN("skipcol"), (varnumber_T)curwin->w_skipcol);
|
tv_dict_add_nr(dict, S_LEN("skipcol"), (varnumber_T)curwin->w_skipcol);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Writes list of strings to file
|
/// Write "list" of strings to file "fd".
|
||||||
///
|
///
|
||||||
/// @param fp File to write to.
|
/// @param fp File to write to.
|
||||||
/// @param[in] list List to write.
|
/// @param[in] list List to write.
|
||||||
|
@ -868,20 +868,15 @@ int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, bool silent)
|
|||||||
|
|
||||||
addlen = (int)STRLEN(str);
|
addlen = (int)STRLEN(str);
|
||||||
|
|
||||||
/*
|
|
||||||
* Easy case: there is room in front of typebuf.tb_buf[typebuf.tb_off]
|
|
||||||
*/
|
|
||||||
if (offset == 0 && addlen <= typebuf.tb_off) {
|
if (offset == 0 && addlen <= typebuf.tb_off) {
|
||||||
|
// Easy case: there is room in front of typebuf.tb_buf[typebuf.tb_off]
|
||||||
typebuf.tb_off -= addlen;
|
typebuf.tb_off -= addlen;
|
||||||
memmove(typebuf.tb_buf + typebuf.tb_off, str, (size_t)addlen);
|
memmove(typebuf.tb_buf + typebuf.tb_off, str, (size_t)addlen);
|
||||||
}
|
} else {
|
||||||
/*
|
// Need to allocate a new buffer.
|
||||||
* Need to allocate a new buffer.
|
// In typebuf.tb_buf there must always be room for 3 * MAXMAPLEN + 4
|
||||||
* In typebuf.tb_buf there must always be room for 3 * MAXMAPLEN + 4
|
// characters. We add some extra room to avoid having to allocate too
|
||||||
* characters. We add some extra room to avoid having to allocate too
|
// often.
|
||||||
* often.
|
|
||||||
*/
|
|
||||||
else {
|
|
||||||
newoff = MAXMAPLEN + 4;
|
newoff = MAXMAPLEN + 4;
|
||||||
newlen = typebuf.tb_len + addlen + newoff + 4 * (MAXMAPLEN + 4);
|
newlen = typebuf.tb_len + addlen + newoff + 4 * (MAXMAPLEN + 4);
|
||||||
if (newlen < 0) { /* string is getting too long */
|
if (newlen < 0) { /* string is getting too long */
|
||||||
@ -1663,10 +1658,10 @@ static int vgetorpeek(int advance)
|
|||||||
}
|
}
|
||||||
if (c != NUL && !got_int) {
|
if (c != NUL && !got_int) {
|
||||||
if (advance) {
|
if (advance) {
|
||||||
/* KeyTyped = FALSE; When the command that stuffed something
|
// KeyTyped = FALSE; When the command that stuffed something
|
||||||
* was typed, behave like the stuffed command was typed.
|
// was typed, behave like the stuffed command was typed.
|
||||||
* needed for CTRL-W CTRl-] to open a fold, for example. */
|
// needed for CTRL-W CTRL-] to open a fold, for example.
|
||||||
KeyStuffed = TRUE;
|
KeyStuffed = true;
|
||||||
}
|
}
|
||||||
if (typebuf.tb_no_abbr_cnt == 0)
|
if (typebuf.tb_no_abbr_cnt == 0)
|
||||||
typebuf.tb_no_abbr_cnt = 1; /* no abbreviations now */
|
typebuf.tb_no_abbr_cnt = 1; /* no abbreviations now */
|
||||||
|
@ -939,7 +939,7 @@ static const int included_patches[] = {
|
|||||||
167,
|
167,
|
||||||
// 166,
|
// 166,
|
||||||
165,
|
165,
|
||||||
// 164,
|
164,
|
||||||
// 163 NA
|
// 163 NA
|
||||||
// 162 NA
|
// 162 NA
|
||||||
// 161 NA
|
// 161 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user