Contents

view

A Textadept view object.


Fields


size (number)

The position of the split resizer (if this view is part of a split view).


Functions


goto_buffer(view, n, relative)

Goes to buffer number n in the view. If relative is true, n is an index relative to the index of the current buffer in _G._BUFFERS instead of an absolute index. Emits BUFFER_BEFORE_SWITCH and BUFFER_AFTER_SWITCH events.

Parameters:

See also:


split(view, vertical)

Splits the view into top and bottom views, unless vertical is true, focuses the new view, and returns both the old and new views. If vertical is false, splits the view vertically into left and right views. Emits a VIEW_NEW event.

Parameters:

Return:

See also:


unsplit(view)

Unsplits the view if possible, returning true on success.

Parameters:

Return:


Tables


buffer

The buffer the view contains. (Read-only)