Ran go fmt *.go on all sources

This commit is contained in:
Luke I. Wilson 2021-04-04 13:15:31 -05:00
parent e115855491
commit 3982628653
11 changed files with 78 additions and 79 deletions

View File

@ -4,9 +4,9 @@ import (
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"log"
"io/fs" "io/fs"
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"runtime" "runtime"
"runtime/pprof" "runtime/pprof"

View File

@ -62,7 +62,6 @@ type Buffer interface {
// the last rune before the line delimiter. // the last rune before the line delimiter.
ClampLineCol(line, col int) (int, int) ClampLineCol(line, col int) (int, int)
// LineColToPos returns the index of the byte at line, col. If line is less than // LineColToPos returns the index of the byte at line, col. If line is less than
// zero, or more than the number of available lines, the function will panic. If // zero, or more than the number of available lines, the function will panic. If
// col is less than zero, the function will panic. If col is greater than the // col is less than zero, the function will panic. If col is greater than the

View File

@ -23,7 +23,7 @@ func (c *Colorscheme) GetStyle(s Syntax) tcell.Style {
} }
} }
return tcell.StyleDefault; // No value for Default; use default style. return tcell.StyleDefault // No value for Default; use default style.
} }
type RegexpRegion struct { type RegexpRegion struct {

View File

@ -9,9 +9,9 @@ import (
"strings" "strings"
"unicode/utf8" "unicode/utf8"
"github.com/mattn/go-runewidth"
"github.com/fivemoreminix/qedit/ui/buffer" "github.com/fivemoreminix/qedit/ui/buffer"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
) )
// A Selection represents a region of the buffer to be selected for text editing // A Selection represents a region of the buffer to be selected for text editing