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

Method setFilenames

texteditor/diffeditor.go:193–198  ·  view source on GitHub ↗

setFilenames sets the filenames and updates markup accordingly. Called in DiffStrings

()

Source from the content-addressed store, hash-verified

191// setFilenames sets the filenames and updates markup accordingly.
192// Called in DiffStrings
193func (dv *DiffEditor) setFilenames() {
194 dv.bufferA.SetFilename(dv.FileA)
195 dv.bufferB.SetFilename(dv.FileB)
196 dv.bufferA.Stat()
197 dv.bufferB.Stat()
198}
199
200// syncEditors synchronizes the text [Editor] scrolling and cursor positions
201func (dv *DiffEditor) syncEditors(typ events.Types, e events.Event, name string) {

Callers 1

DiffStringsMethod · 0.95

Calls 2

SetFilenameMethod · 0.45
StatMethod · 0.45

Tested by

no test coverage detected