diff --git a/NEWS.adoc b/NEWS.adoc index 3c6eb109b..d01d8d7d1 100644 --- a/NEWS.adoc +++ b/NEWS.adoc @@ -16,6 +16,7 @@ Improvements: - Keep cursor position when toggling file-filter in the main view. - Make errors visible in views showing Git output. (#1346) - Allow different colors for all references types. + - Enable search in sections titles. (#1043) tig-2.5.10 ---------- diff --git a/src/view.c b/src/view.c index 3944e5f3e..bcda169be 100644 --- a/src/view.c +++ b/src/view.c @@ -1144,6 +1144,15 @@ view_column_grep(struct view *view, struct line *line) if (!ok) return false; + if (column_data.section) { + const char *text[] = { + column_data.section->opt.section.text, + NULL + }; + + return grep_text(view, text); + } + for (column = view->columns; column; column = column->next) { const char *text[] = { view_column_text(view, &column_data, column),