editor.SetPosition

LuaFAR 3

editor.SetPosition


result = editor.SetPosition (EditorId, PosData)
  or
result = editor.SetPosition (EditorId, CurLine, CurPos,
               CurTabPos, TopScreenLine, LeftPos, Overtype)

Parameters:
  EditorId: integer, or nil
  PosData:  table
    fields of PosData:
      CurLine:       integer, 1-based
      CurPos:        integer, 1-based
      CurTabPos:     integer, 1-based
      TopScreenLine: integer, 1-based
      LeftPos:       integer, 1-based
      Overtype:      integer

  Parameters of the 2-nd function variant correspond to fields
  of the PosData table.

Returns:
  result: boolean

Far API used:
  EditorControl, ECTL_SETPOSITION