Skip to content

Commit

Permalink
Hopefully fixed js compile error this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Apr 30, 2024
1 parent 63003c6 commit 94cda29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text/text_editor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1771,12 +1771,12 @@ proc gotoLocationAsync(self: TextDocumentEditor, locations: seq[Definition]): Fu
location: location.location.some
)

return res
res

builder.handleItemConfirmed = proc(popup: ISelectorPopup, item: SelectorItem): bool =
let item = item.FileSelectorItem
self.openFileAt(item.path, item.location.mapIt(it.toSelection))
return true
true

builder.handleItemSelected = proc(popup: ISelectorPopup, item: SelectorItem) =
let item = item.FileSelectorItem
Expand Down

0 comments on commit 94cda29

Please sign in to comment.