Skip to content

Commit 301f98e

Browse files
committed
deprecations
1 parent 408f27b commit 301f98e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ProofWidgets/Component/MakeEditLink.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def MakeEditLinkProps.ofReplaceRange' (doc : Server.DocumentMeta) (range : Lsp.R
4343
if newSelection?.isSome then
4444
{ edit, newSelection? }
4545
else
46-
let endPos := range.start.advance newText.toSubstring
46+
let endPos := range.start.advance newText.toRawSubstring
4747
{ edit, newSelection? := some { start := endPos, «end» := endPos } }
4848

4949
/-- Replace `range` with `newText`.
@@ -54,8 +54,8 @@ def MakeEditLinkProps.ofReplaceRange (doc : Server.DocumentMeta) (range : Lsp.Ra
5454
(newText : String) (newSelection? : Option (String.Pos.Raw × String.Pos.Raw) := none) :
5555
MakeEditLinkProps :=
5656
ofReplaceRange' doc range newText (newSelection?.map fun (s, e) =>
57-
let ps := range.start.advance (newText.toSubstring.extract 0 s)
58-
let pe := ps.advance (newText.toSubstring.extract s e)
57+
let ps := range.start.advance (newText.toRawSubstring.extract 0 s)
58+
let pe := ps.advance (newText.toRawSubstring.extract s e)
5959
{ start := ps, «end» := pe })
6060

6161
/-- A link that, when clicked, makes the specified edit

0 commit comments

Comments
 (0)