tabcursorpos Parameter

Moves the cursor to the specified column within the line, allowing for tab characters expanded to spaces.

Scope: View

Syntax

query tabcursorpos 
set tabcursorpos ColumnNumber 

Option

ColumnNumber 
The column where the cursor is to be positioned.

Description

The cursorpos parameter moves the cursor to the specified column within the line, regardless of the window size. The columns that form the prefix area are assigned negative numbers. If the new position is beyond what is currently displayed, the window will scroll right or left to display it.

Note: If the expandtabs parameter is set to on, each space used to expand the tab character in the Editor window is counted as a column.

Example

To set the cursor to column 34, type:

set tabcursorpos 34 

If column number 34 is not currently displayed, the window is scrolled to display the new cursor position.

API Return Codes

-2 The number specified was either outside the valid range or not an integer. Issue the command again using a valid number.

cursorcol Parameter
cursorpos Parameter
cursorrow Parameter
expandtabs Parameter