Queries information about the current editor window.

Synopsis

info = EditQuery(option)

Args

option is one of the following:

'LINES' Returns total number of lines.
'READONLY' Returns 1 if read-only or 0 otherwise.
'LENGTH' Returns length of line or "" if the line doesn't exist. The line number may be specified as the second arg. If omitted, then the current line is queried.

If omitted, defaults to 'LENGTH'.

Returns

The information above, or an empty string if an error.