Merge #9794 from janlazo/vim-8.0.1528

This commit is contained in:
Justin M. Keyes 2019-03-27 11:09:54 +01:00 committed by GitHub
commit 2470c88291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 11 deletions

View File

@ -6371,14 +6371,12 @@ void grid_del_lines(ScreenGrid *grid, int row, int line_count, int end, int col,
} }
/* // Show the current mode and ruler.
* show the current mode and ruler //
* // If clear_cmdline is TRUE, clear the rest of the cmdline.
* If clear_cmdline is TRUE, clear the rest of the cmdline. // If clear_cmdline is FALSE there may be a message there that needs to be
* If clear_cmdline is FALSE there may be a message there that needs to be // cleared only if a mode is shown.
* cleared only if a mode is shown. // Return the length of the message (0 if no message).
* Return the length of the message (0 if no message).
*/
int showmode(void) int showmode(void)
{ {
int need_clear; int need_clear;

View File

@ -310,7 +310,7 @@ void free_search_patterns(void)
/// Save and restore the search pattern for incremental highlight search /// Save and restore the search pattern for incremental highlight search
/// feature. /// feature.
/// ///
/// It's similar but different from save_search_patterns() and /// It's similar to but different from save_search_patterns() and
/// restore_search_patterns(), because the search pattern must be restored when /// restore_search_patterns(), because the search pattern must be restored when
/// cancelling incremental searching even if it's called inside user functions. /// cancelling incremental searching even if it's called inside user functions.
void save_last_search_pattern(void) void save_last_search_pattern(void)

View File

@ -2294,7 +2294,7 @@ static void use_midword(slang_T *lp, win_T *wp)
} }
// Find the region "region[2]" in "rp" (points to "sl_regions"). // Find the region "region[2]" in "rp" (points to "sl_regions").
// Each region is simply stored as the two characters of it's name. // Each region is simply stored as the two characters of its name.
// Returns the index if found (first is 0), REGION_ALL if not found. // Returns the index if found (first is 0), REGION_ALL if not found.
static int find_region(char_u *rp, char_u *region) static int find_region(char_u *rp, char_u *region)
{ {

View File

@ -3227,7 +3227,7 @@ static int get_pfxlist(afffile_T *affile, char_u *afflist, char_u *store_afflist
prevp = p; prevp = p;
if (get_affitem(affile->af_flagtype, &p) != 0) { if (get_affitem(affile->af_flagtype, &p) != 0) {
// A flag is a postponed prefix flag if it appears in "af_pref" // A flag is a postponed prefix flag if it appears in "af_pref"
// and it's ID is not zero. // and its ID is not zero.
STRLCPY(key, prevp, p - prevp + 1); STRLCPY(key, prevp, p - prevp + 1);
hi = hash_find(&affile->af_pref, key); hi = hash_find(&affile->af_pref, key);
if (!HASHITEM_EMPTY(hi)) { if (!HASHITEM_EMPTY(hi)) {