pkg/cli/tk/codearea.go
Method codeArea.expandSmallWordAbbr
has 6 return statements (exceeds 4 allowed). Open
Open
func (w *codeArea) expandSmallWordAbbr(trigger rune, categorizer func(rune) int) {
buf := &w.State.Buffer
if buf.Dot < len(buf.Content) {
// Word abbreviations are only expanded when inserting at the end of the buffer.
return
Method codeArea.handleKeyEvent
has 6 return statements (exceeds 4 allowed). Open
Open
func (w *codeArea) handleKeyEvent(key ui.Key) bool {
isFuncKey := key.Mod != 0 || key.Rune < 0
if w.pasting {
if isFuncKey {
// TODO: Notify the user of the error, or insert the original
Function NewCodeArea
has 5 return statements (exceeds 4 allowed). Open
Open
func NewCodeArea(spec CodeAreaSpec) CodeArea {
if spec.Bindings == nil {
spec.Bindings = DummyBindings{}
}
if spec.Highlighter == nil {