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

Method AutoIndentRegion

texteditor/buffer.go:902–907  ·  view source on GitHub ↗

AutoIndentRegion does auto-indent over given region; end is *exclusive*

(start, end int)

Source from the content-addressed store, hash-verified

900
901// AutoIndentRegion does auto-indent over given region; end is *exclusive*
902func (tb *Buffer) AutoIndentRegion(start, end int) {
903 autoSave := tb.batchUpdateStart()
904 defer tb.batchUpdateEnd(autoSave)
905 tb.Lines.AutoIndentRegion(start, end)
906 tb.signalMods()
907}
908
909// CommentRegion inserts comment marker on given lines; end is *exclusive*
910func (tb *Buffer) CommentRegion(start, end int) {

Callers

nothing calls this directly

Calls 3

batchUpdateStartMethod · 0.95
batchUpdateEndMethod · 0.95
signalModsMethod · 0.95

Tested by

no test coverage detected