From e3683b58fc291f363c52e698db003683824fd550 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 18 Apr 2022 15:12:56 +0200 Subject: search: add comment to ‘advance_pos()’ macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search.c b/search.c index 9e59c618..2e31d6d4 100644 --- a/search.c +++ b/search.c @@ -609,6 +609,8 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only) struct coord new_end = old_end; struct row *row = NULL; + /* Advances a coordinate by one column, to the right. Returns + * false if we’ve reached the scrollback wrap-around */ #define advance_pos(coord) __extension__ \ ({ \ bool wrapped_around = false; \ -- cgit v1.3