mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
pos: define MAXCOL to INT_MAX
Partial port of patch v8.1.0953. Remove useless casts on MAXCOL.
This commit is contained in:
@@ -4198,7 +4198,7 @@ skip:
|
||||
// when interactive leave cursor on the match
|
||||
if (!subflags.do_ask) {
|
||||
if (endcolumn) {
|
||||
coladvance((colnr_T)MAXCOL);
|
||||
coladvance(MAXCOL);
|
||||
} else {
|
||||
beginline(BL_WHITE | BL_FIX);
|
||||
}
|
||||
@@ -5020,7 +5020,7 @@ int find_help_tags(const char_u *arg, int *num_matches, char_u ***matches,
|
||||
if (keep_lang) {
|
||||
flags |= TAG_KEEP_LANG;
|
||||
}
|
||||
if (find_tags(IObuff, num_matches, matches, flags, (int)MAXCOL, NULL) == OK
|
||||
if (find_tags(IObuff, num_matches, matches, flags, MAXCOL, NULL) == OK
|
||||
&& *num_matches > 0) {
|
||||
/* Sort the matches found on the heuristic number that is after the
|
||||
* tag name. */
|
||||
|
Reference in New Issue
Block a user