Skip to content

Commit 687db35

Browse files
committed
Ensure that comment text in all keybindings is searchable
1. help.c a. help_grep() For keybinding for each run request, include any help text in the text line so that it can participate in grep operations.
1 parent a0b8671 commit 687db35

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/help.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,8 @@ help_grep(struct view *view, struct line *line)
105105
} else if (help->request > REQ_RUN_REQUESTS) {
106106
struct run_request *req = get_run_request(help->request);
107107
const char *key = get_keys(keymap, help->request, true);
108-
char buf[SIZEOF_STR] = "";
109-
const char *text[] = { key, buf, NULL };
110108

111-
if (!argv_to_string(req->argv, buf, sizeof(buf), " "))
112-
return false;
109+
const char *text[] = { key, req->name, req->help, NULL };
113110

114111
return grep_text(view, text);
115112

0 commit comments

Comments
 (0)