Skip to content

Commit

Permalink
Fix search hilite bug introduced in v517.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Oct 25, 2017
1 parent 3e9e5aa commit aacde3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions search.c
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ search(search_type, pattern, n)
* Search was unsuccessful.
*/
#if HILITE_SEARCH
if (hilite_search == OPT_ON && n > 0)
if ((hilite_search == OPT_ON || status_col) && n > 0)
/*
* Redisplay old hilites.
*/
Expand All @@ -1510,7 +1510,7 @@ search(search_type, pattern, n)
}

#if HILITE_SEARCH
if (hilite_search == OPT_ON)
if (hilite_search == OPT_ON || status_col)
/*
* Display new hilites in the matching line.
*/
Expand Down
3 changes: 2 additions & 1 deletion version.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ v522 10/20/17 Handle keypad ENTER key properly.
v523 10/23/17 Cleanup.
v524 10/24/17 Fix getcc bug.
v525 10/24/17 Change M command to mark last displayed line.
v526 10/25/17 Fix search hilite bug introduced in v517.
*/

char version[] = "525";
char version[] = "526";

0 comments on commit aacde3b

Please sign in to comment.