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

Method SpacesToTabs

texteditor/buffer.go:936–941  ·  view source on GitHub ↗

SpacesToTabs replaces tabs with spaces over given region; end is *exclusive*

(start, end int)

Source from the content-addressed store, hash-verified

934
935// SpacesToTabs replaces tabs with spaces over given region; end is *exclusive*
936func (tb *Buffer) SpacesToTabs(start, end int) {
937 autoSave := tb.batchUpdateStart()
938 defer tb.batchUpdateEnd(autoSave)
939 tb.Lines.SpacesToTabs(start, end)
940 tb.signalMods()
941}
942
943// DiffBuffersUnified computes the diff between this buffer and the other buffer,
944// returning a unified diff with given amount of context (default of 3 will be

Callers 1

handleElementFunction · 0.45

Calls 3

batchUpdateStartMethod · 0.95
batchUpdateEndMethod · 0.95
signalModsMethod · 0.95

Tested by

no test coverage detected