highlight search results in blue, step 151
This commit is contained in:
parent
78a91514b3
commit
a59bcfb9d1
@ -543,6 +543,10 @@ class Editor {
|
||||
$this->cursorY = $current;
|
||||
$this->cursorX = $this->rowRxToCx($this->rows[$current], $match);
|
||||
$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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user