03-30-2019, 05:09 AM
Function GetQmCodeEditorCaretPositionBeforeInsertingText
test
Macro Macro349
;/
function# [flags] ;;flags: 1 go to that position
int c=GetQmCodeEditor
SendMessage(c SCI.SCI_UNDO 0 0)
int r=SendMessage(c SCI.SCI_GETCURRENTPOS 0 0)
SendMessage(c SCI.SCI_REDO 0 0)
if(flags&1) SendMessage(c SCI.SCI_GOTOPOS r 0)
ret r
;https://www.scintilla.org/ScintillaDoc.html
test
Macro Macro349