fix visual bug resulting from 'TextBuilder.buildTextStringSearch' function. When we have a search string 'abc' and a file 'abcabc', there are two matches and it should also look like there are two matches, but it did not look like there were two matches prior to this commit. This commit fixes that by advancing the search position before adding to the text accumulator.

This commit is contained in:
2025-08-31 00:05:48 +01:00
parent 659a1d2585
commit 83e062eb60
3 changed files with 274 additions and 787 deletions

View File

@@ -69,7 +69,7 @@ struct
let
val buffer = #buffer app
val buffer = LineGap.goToStart buffer
val searchString = "val "
val searchString = "abc"
val searchList = SearchList.build (buffer, searchString)
val buffer = LineGap.goToStart buffer
in