Menu

cActionSetCaretPos

Alexey T.

This action can be called by plugin to set caret position (0-based) in the current editor.

Parameters:

  • A1 (Integer) - caret X position (column). If it's negative, A2 parameter means absolute text offset.
  • A2 (Integer) - caret Y position (line).
  • A3, A4 - not used.

Return value: cSynError if invalid position was passed (e.g. too big line number), or cSynOK otherwise.


Related

Wiki: binary API actions
Wiki: binary Goto-Definition plugins

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.