MCPcopy Create free account
hub / github.com/cogentcore/core / sceneFromEditor

Method sceneFromEditor

texteditor/buffer.go:651–656  ·  view source on GitHub ↗

sceneFromEditor returns Scene from text editor, if avail

()

Source from the content-addressed store, hash-verified

649
650// sceneFromEditor returns Scene from text editor, if avail
651func (tb *Buffer) sceneFromEditor() *core.Scene {
652 if len(tb.editors) > 0 {
653 return tb.editors[0].Scene
654 }
655 return nil
656}
657
658// AutoScrollEditors ensures that our editors are always viewing the end of the buffer
659func (tb *Buffer) AutoScrollEditors() {

Callers 6

FileModCheckMethod · 0.95
RevertMethod · 0.95
SaveAsFuncMethod · 0.95
saveFileMethod · 0.95
SaveMethod · 0.95
CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected