Skip to content

Commit

Permalink
add documentation for 'clear_matches'
Browse files Browse the repository at this point in the history
  • Loading branch information
resolritter committed Sep 7, 2020
1 parent 57a542f commit f930b6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Key Binds
U,⇞ go up a screen
w toggle line wrap
/ search
/ clear search matches
F1 view help
F2 view recently opened files

Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ char *usage_text () {
" U,⇞ go up a screen\n"
" w toggle line wrap\n"
" / search\n"
" c clear search matches\n"
" F1 view help\n"
" F2 view recently opened files\n";
return str;
Expand Down
2 changes: 1 addition & 1 deletion search.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void save_search_history () {
fclose(fp);
}

void clear_matches() {
void clear_matches () {
tabb->matches = NULL;
tabb->matches_len = 0;
tabb->matches_size = 0;
Expand Down

0 comments on commit f930b6f

Please sign in to comment.