Preserve context highlighting from full-text search

When replacing changed cards the fulltext highlighting should be
preserved from the original item.
This commit is contained in:
Eike Kettner
2020-10-27 22:51:11 +01:00
parent 85699dd2de
commit c6b8355902

View File

@ -92,7 +92,7 @@ replaceIn origin replacements =
replaceItem item =
case Dict.get item.id newItems of
Just ni ->
ni
{ ni | highlighting = item.highlighting }
Nothing ->
item