Mercurial > vim
comparison src/highlight.c @ 18498:9e6d5a4abb1c v8.1.2243
patch 8.1.2243: typos in comments
Commit: https://github.com/vim/vim/commit/32aa10203bd0b4b270def03311a4599f9ffdecc4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 2 22:54:41 2019 +0100
patch 8.1.2243: typos in comments
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes https://github.com/vim/vim/issues/5160) Also adjust
formatting a bit.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Nov 2019 23:00:06 +0100 |
parents | 506bf60a30a0 |
children | e966de1d0376 |
comparison
equal
deleted
inserted
replaced
18497:14e9f08eec14 | 18498:9e6d5a4abb1c |
---|---|
3680 | 3680 |
3681 if (*grp == NUL || (pat != NULL && *pat == NUL)) | 3681 if (*grp == NUL || (pat != NULL && *pat == NUL)) |
3682 return -1; | 3682 return -1; |
3683 if (id < -1 || id == 0) | 3683 if (id < -1 || id == 0) |
3684 { | 3684 { |
3685 semsg(_("E799: Invalid ID: %d (must be greater than or equal to 1)"), id); | 3685 semsg(_("E799: Invalid ID: %d (must be greater than or equal to 1)"), |
3686 id); | |
3686 return -1; | 3687 return -1; |
3687 } | 3688 } |
3688 if (id != -1) | 3689 if (id != -1) |
3689 { | 3690 { |
3690 cur = wp->w_match_head; | 3691 cur = wp->w_match_head; |
4344 * For a position in a line: Check for start/end of 'hlsearch' and other | 4345 * For a position in a line: Check for start/end of 'hlsearch' and other |
4345 * matches. | 4346 * matches. |
4346 * After end, check for start/end of next match. | 4347 * After end, check for start/end of next match. |
4347 * When another match, have to check for start again. | 4348 * When another match, have to check for start again. |
4348 * Watch out for matching an empty string! | 4349 * Watch out for matching an empty string! |
4349 * Return the udpated search_attr. | 4350 * Return the updated search_attr. |
4350 */ | 4351 */ |
4351 int | 4352 int |
4352 update_search_hl( | 4353 update_search_hl( |
4353 win_T *wp, | 4354 win_T *wp, |
4354 linenr_T lnum, | 4355 linenr_T lnum, |