Merge template-live-editor
This commit is contained in:
commit
2fdd8a2adf
|
@ -212,9 +212,6 @@ early warning if you break something.
|
|||
showing a blinking cursor (usually because you want a `readonly` editor; see
|
||||
below).
|
||||
|
||||
* `edit.update(state, dt)` -- call this from `on.update` to periodically
|
||||
auto-save editor contents to disk.
|
||||
|
||||
* `edit.mouse_press(state, x,y, mouse_button)` and `edit.mouse_release(x,y,
|
||||
mouse_button)` -- call these to position the cursor or select some text.
|
||||
|
||||
|
@ -237,6 +234,12 @@ early warning if you break something.
|
|||
* `edit.update_font_height(state, font_height)` -- updates all state dependent
|
||||
on font height.
|
||||
|
||||
* `edit.update(state, dt)` -- call this from `on.update` to periodically
|
||||
auto-save editor contents to disk.
|
||||
|
||||
* `edit.quit(state)` -- call this from `on.quit` to ensure any final edits
|
||||
get saved before quitting.
|
||||
|
||||
If you need more precise control, look at the comment at the top of
|
||||
`edit.initialize_state` in edit.lua. In brief, the widget contains an array of
|
||||
`lines`. Positions in the buffer are described in _schema-1_ locations
|
||||
|
|
Loading…
Reference in New Issue