This commit is contained in:
Anton Medvedev 2022-04-29 23:42:56 +02:00
parent 3b9ac1d023
commit 2e30f1ec9a

View File

@ -2,9 +2,10 @@ package main
import (
"fmt"
"regexp"
. "github.com/antonmedv/fx/pkg/dict"
. "github.com/antonmedv/fx/pkg/json"
"regexp"
)
type searchResult struct {
@ -87,6 +88,7 @@ func (m *model) remapSearchResult(object interface{}, path string, pos int, inde
return pos + len(s), id, current
case string:
// TODO: Wrap the string, save a line number according to current wrap or no wrap mode.
s := fmt.Sprintf("%q", object)
id, current = m.findRanges(valueRange, s, path, pos, indexes, id, current)
return pos + len(s), id, current