aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-18 13:12:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-18 13:12:56 +0000
commite3683b58fc291f363c52e698db003683824fd550 (patch)
treea207ab52573bfed66b9801f142d2139573481afc
parentsearch: codespell: backards -> backwards (diff)
search: add comment to ‘advance_pos()’ macro
-rw-r--r--search.c2
1 files changed, 2 insertions, 0 deletions
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; \