diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-22 20:01:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 20:01:50 +0200 |
commit | 7f7698649fc15cbd929233ee7373ff3d9d113546 (patch) | |
tree | 43e2809cb97a812fe65bdf8ffe3a5a50fd231db6 /src/nvim/window.c | |
parent | 1d175f3448a6630d6825c02d7f1b90ad0f7b0a7a (diff) | |
parent | 5f6ad863c6d28dce377590a1d33bc386d346cc27 (diff) | |
download | rneovim-7f7698649fc15cbd929233ee7373ff3d9d113546.tar.gz rneovim-7f7698649fc15cbd929233ee7373ff3d9d113546.tar.bz2 rneovim-7f7698649fc15cbd929233ee7373ff3d9d113546.zip |
Merge #6973 from teto/normal_hl
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 081fc98816..c2d0a9b3b1 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -5515,11 +5515,14 @@ void restore_buffer(bufref_T *save_curbuf) } -// Add match to the match list of window 'wp'. The pattern 'pat' will be -// highlighted with the group 'grp' with priority 'prio'. -// Optionally, a desired ID 'id' can be specified (greater than or equal to 1). -// If no particular ID is desired, -1 must be specified for 'id'. -// Return ID of added match, -1 on failure. +/// Add match to the match list of window 'wp'. The pattern 'pat' will be +/// highlighted with the group 'grp' with priority 'prio'. +/// Optionally, a desired ID 'id' can be specified (greater than or equal to 1). +/// +/// @param[in] id a desired ID 'id' can be specified +/// (greater than or equal to 1). -1 must be specified if no +/// particular ID is desired +/// @return ID of added match, -1 on failure. int match_add(win_T *wp, const char *const grp, const char *const pat, int prio, int id, list_T *pos_list, const char *const conceal_char) @@ -5697,10 +5700,9 @@ fail: return -1; } -/* - * Delete match with ID 'id' in the match list of window 'wp'. - * Print error messages if 'perr' is TRUE. - */ + +/// Delete match with ID 'id' in the match list of window 'wp'. +/// Print error messages if 'perr' is TRUE. int match_delete(win_T *wp, int id, int perr) { matchitem_T *cur = wp->w_match_head; |