Ran go fmt *.go
on all sources
This commit is contained in:
parent
e115855491
commit
3982628653
2
main.go
2
main.go
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user