highlight search results in blue, step 151

This commit is contained in:
Timothy Warren 2019-10-24 12:01:00 -04:00
parent 78a91514b3
commit a59bcfb9d1

View File

@ -543,6 +543,10 @@ class Editor {
$this->cursorY = $current; $this->cursorY = $current;
$this->cursorX = $this->rowRxToCx($this->rows[$current], $match); $this->cursorX = $this->rowRxToCx($this->rows[$current], $match);
$this->rowOffset = $this->numRows; $this->rowOffset = $this->numRows;
// Update the highlight array of the relevant row with the 'MATCH' type
array_replace_range($this->rows[$current]->hl, $match, strlen($query), Highlight::MATCH);
break; break;
} }
} }