diff --git a/textview.go b/textview.go index 29faa21..8950c5f 100644 --- a/textview.go +++ b/textview.go @@ -12,12 +12,12 @@ import ( runewidth "github.com/mattn/go-runewidth" ) -// TabSize is the number of spaces with which a tab character will be replaced. var ( openColorRegex = regexp.MustCompile(`\[([a-zA-Z]*|#[0-9a-zA-Z]*)$`) openRegionRegex = regexp.MustCompile(`\["[a-zA-Z0-9_,;: \-\.]*"?$`) newLineRegex = regexp.MustCompile(`\r?\n`) + // TabSize is the number of spaces with which a tab character will be replaced. TabSize = 4 )