mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: add comment to ‘advance_pos()’ macro
This commit is contained in:
parent
b3d18e3c8d
commit
e3683b58fc
1 changed files with 2 additions and 0 deletions
2
search.c
2
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; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue