Improve loads of fancy things in relation to the mouse pointer
This commit is contained in:
@@ -56,7 +56,7 @@ struct EditorPane: View {
|
||||
tabSize: editor.editorConfig.tabSize,
|
||||
marksKey: marked.map { "actual:" + Self.stamp($0) } ?? "none",
|
||||
makeMarks: { marked.map { ChangeMarks.actual(DiffViews.actual($0)) } ?? [:] },
|
||||
opensDiffOnClick: presentation.opensDiffOnClick, knownSymbols: editor.knownSymbols,
|
||||
offersShowDiff: presentation.offersShowDiff, knownSymbols: editor.knownSymbols,
|
||||
symbolsVersion: editor.knownSymbolsVersion, flash: editor.flash,
|
||||
focusRequest: editor.textFocusRequest, selectAllRequest: editor.selectAllRequest, fontScale: fontScale,
|
||||
isShown: isShown)
|
||||
@@ -73,9 +73,9 @@ struct EditorPane: View {
|
||||
edited: { editor.edit($0) },
|
||||
cursorMoved: { editor.updateCursor(line: $0, column: $1) },
|
||||
selectionChanged: { editor.updateSelection(lines: $0, code: $1) },
|
||||
markedLineClicked: { editor.openDiff(atLine: $0) },
|
||||
contextMenu: { reference, code, anchor in
|
||||
editor.presentOverlay?(.contextMenu(editor.contextMenuRequest(reference: reference, code: code, anchor: anchor)))
|
||||
contextMenu: { reference, code, showDiffLine, anchor in
|
||||
let request = editor.contextMenuRequest(reference: reference, code: code, showDiffLine: showDiffLine, anchor: anchor)
|
||||
editor.presentOverlay?(.contextMenu(request))
|
||||
},
|
||||
symbolClicked: { editor.lookupSymbol($0) },
|
||||
passOnSelection: { anchor in
|
||||
|
||||
Reference in New Issue
Block a user