mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
lint
This commit is contained in:
@@ -4197,7 +4197,7 @@ static char_u * translate_mapping (
|
|||||||
}
|
}
|
||||||
str += 2;
|
str += 2;
|
||||||
}
|
}
|
||||||
if (IS_SPECIAL(c) || modifiers) { /* special key */
|
if (IS_SPECIAL(c) || modifiers) { // special key
|
||||||
if (expmap) {
|
if (expmap) {
|
||||||
ga_clear(&ga);
|
ga_clear(&ga);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -817,7 +817,7 @@ char_u *replace_termcodes(const char_u *from, const size_t from_len,
|
|||||||
while (src <= end) {
|
while (src <= end) {
|
||||||
// Check for special <> keycodes, like "<C-S-LeftMouse>"
|
// Check for special <> keycodes, like "<C-S-LeftMouse>"
|
||||||
if (special && (do_lt || ((end - src) >= 3
|
if (special && (do_lt || ((end - src) >= 3
|
||||||
&& STRNCMP(src, "<lt>", 4) != 0))) {
|
&& STRNCMP(src, "<lt>", 4) != 0))) {
|
||||||
// Replace <SID> by K_SNR <script-nr> _.
|
// Replace <SID> by K_SNR <script-nr> _.
|
||||||
// (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14)
|
// (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14)
|
||||||
if (end - src >= 4 && STRNICMP(src, "<SID>", 5) == 0) {
|
if (end - src >= 4 && STRNICMP(src, "<SID>", 5) == 0) {
|
||||||
|
@@ -81,45 +81,45 @@
|
|||||||
#define DFLT_FO_VIM "tcqj"
|
#define DFLT_FO_VIM "tcqj"
|
||||||
#define FO_ALL "tcroq2vlb1mMBn,awj" /* for do_set() */
|
#define FO_ALL "tcroq2vlb1mMBn,awj" /* for do_set() */
|
||||||
|
|
||||||
/* characters for the p_cpo option: */
|
// characters for the p_cpo option:
|
||||||
#define CPO_ALTREAD 'a' /* ":read" sets alternate file name */
|
#define CPO_ALTREAD 'a' // ":read" sets alternate file name
|
||||||
#define CPO_ALTWRITE 'A' /* ":write" sets alternate file name */
|
#define CPO_ALTWRITE 'A' // ":write" sets alternate file name
|
||||||
#define CPO_BAR 'b' /* "\|" ends a mapping */
|
#define CPO_BAR 'b' // "\|" ends a mapping
|
||||||
#define CPO_BSLASH 'B' /* backslash in mapping is not special */
|
#define CPO_BSLASH 'B' // backslash in mapping is not special
|
||||||
#define CPO_SEARCH 'c'
|
#define CPO_SEARCH 'c'
|
||||||
#define CPO_CONCAT 'C' /* Don't concatenate sourced lines */
|
#define CPO_CONCAT 'C' // Don't concatenate sourced lines
|
||||||
#define CPO_DOTTAG 'd' /* "./tags" in 'tags' is in current dir */
|
#define CPO_DOTTAG 'd' // "./tags" in 'tags' is in current dir
|
||||||
#define CPO_DIGRAPH 'D' /* No digraph after "r", "f", etc. */
|
#define CPO_DIGRAPH 'D' // No digraph after "r", "f", etc.
|
||||||
#define CPO_EXECBUF 'e'
|
#define CPO_EXECBUF 'e'
|
||||||
#define CPO_EMPTYREGION 'E' /* operating on empty region is an error */
|
#define CPO_EMPTYREGION 'E' // operating on empty region is an error
|
||||||
#define CPO_FNAMER 'f' /* set file name for ":r file" */
|
#define CPO_FNAMER 'f' // set file name for ":r file"
|
||||||
#define CPO_FNAMEW 'F' /* set file name for ":w file" */
|
#define CPO_FNAMEW 'F' // set file name for ":w file"
|
||||||
#define CPO_INTMOD 'i' /* interrupt a read makes buffer modified */
|
#define CPO_INTMOD 'i' // interrupt a read makes buffer modified
|
||||||
#define CPO_INDENT 'I' /* remove auto-indent more often */
|
#define CPO_INDENT 'I' // remove auto-indent more often
|
||||||
#define CPO_ENDOFSENT 'J' /* need two spaces to detect end of sentence */
|
#define CPO_ENDOFSENT 'J' // need two spaces to detect end of sentence
|
||||||
#define CPO_KOFFSET 'K' /* don't wait for key code in mappings */
|
#define CPO_KOFFSET 'K' // don't wait for key code in mappings
|
||||||
#define CPO_LITERAL 'l' /* take char after backslash in [] literal */
|
#define CPO_LITERAL 'l' // take char after backslash in [] literal
|
||||||
#define CPO_LISTWM 'L' /* 'list' changes wrapmargin */
|
#define CPO_LISTWM 'L' // 'list' changes wrapmargin
|
||||||
#define CPO_SHOWMATCH 'm'
|
#define CPO_SHOWMATCH 'm'
|
||||||
#define CPO_MATCHBSL 'M' /* "%" ignores use of backslashes */
|
#define CPO_MATCHBSL 'M' // "%" ignores use of backslashes
|
||||||
#define CPO_NUMCOL 'n' /* 'number' column also used for text */
|
#define CPO_NUMCOL 'n' // 'number' column also used for text
|
||||||
#define CPO_LINEOFF 'o'
|
#define CPO_LINEOFF 'o'
|
||||||
#define CPO_OVERNEW 'O' /* silently overwrite new file */
|
#define CPO_OVERNEW 'O' // silently overwrite new file
|
||||||
#define CPO_LISP 'p' /* 'lisp' indenting */
|
#define CPO_LISP 'p' // 'lisp' indenting
|
||||||
#define CPO_FNAMEAPP 'P' /* set file name for ":w >>file" */
|
#define CPO_FNAMEAPP 'P' // set file name for ":w >>file"
|
||||||
#define CPO_JOINCOL 'q' /* with "3J" use column after first join */
|
#define CPO_JOINCOL 'q' // with "3J" use column after first join
|
||||||
#define CPO_REDO 'r'
|
#define CPO_REDO 'r'
|
||||||
#define CPO_REMMARK 'R' /* remove marks when filtering */
|
#define CPO_REMMARK 'R' // remove marks when filtering
|
||||||
#define CPO_BUFOPT 's'
|
#define CPO_BUFOPT 's'
|
||||||
#define CPO_BUFOPTGLOB 'S'
|
#define CPO_BUFOPTGLOB 'S'
|
||||||
#define CPO_TAGPAT 't'
|
#define CPO_TAGPAT 't'
|
||||||
#define CPO_UNDO 'u' /* "u" undoes itself */
|
#define CPO_UNDO 'u' // "u" undoes itself
|
||||||
#define CPO_BACKSPACE 'v' /* "v" keep deleted text */
|
#define CPO_BACKSPACE 'v' // "v" keep deleted text
|
||||||
#define CPO_FWRITE 'W' /* "w!" doesn't overwrite readonly files */
|
#define CPO_FWRITE 'W' // "w!" doesn't overwrite readonly files
|
||||||
#define CPO_ESC 'x'
|
#define CPO_ESC 'x'
|
||||||
#define CPO_REPLCNT 'X' /* "R" with a count only deletes chars once */
|
#define CPO_REPLCNT 'X' // "R" with a count only deletes chars once
|
||||||
#define CPO_YANK 'y'
|
#define CPO_YANK 'y'
|
||||||
#define CPO_KEEPRO 'Z' /* don't reset 'readonly' on ":w!" */
|
#define CPO_KEEPRO 'Z' // don't reset 'readonly' on ":w!"
|
||||||
#define CPO_DOLLAR '$'
|
#define CPO_DOLLAR '$'
|
||||||
#define CPO_FILTER '!'
|
#define CPO_FILTER '!'
|
||||||
#define CPO_MATCH '%'
|
#define CPO_MATCH '%'
|
||||||
|
Reference in New Issue
Block a user