Skip to content

Commit

Permalink
Highlight search
Browse files Browse the repository at this point in the history
Signed-off-by: Delwin Perera <perera@mm.tu-darmstadt.de>
  • Loading branch information
perdel committed Nov 3, 2024
1 parent 396e708 commit 0592242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ void editorFindCallback(char *query, int key) {
E.cy = current;
E.cx = editorRowRxToCx(row, match - row->render);
E.rowoff = E.numrows;

memset(&row->hl[match - row->render], HL_MATCH, strlen(query));
break;
}
}
Expand Down

0 comments on commit 0592242

Please sign in to comment.