mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-17 04:41:02 +00:00
Remove chardet dependency
This commit is contained in:
parent
ad50d7aa56
commit
ad487807a5
1 changed files with 0 additions and 6 deletions
|
|
@ -12,7 +12,6 @@ import (
|
|||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/saintfish/chardet"
|
||||
"github.com/zyedidia/micro/cmd/micro/config"
|
||||
"github.com/zyedidia/micro/cmd/micro/highlight"
|
||||
"github.com/zyedidia/micro/cmd/micro/screen"
|
||||
|
|
@ -24,13 +23,8 @@ import (
|
|||
|
||||
var (
|
||||
OpenBuffers []*Buffer
|
||||
detector *chardet.Detector // encoding detector
|
||||
)
|
||||
|
||||
func init() {
|
||||
detector = chardet.NewTextDetector()
|
||||
}
|
||||
|
||||
// The BufType defines what kind of buffer this is
|
||||
type BufType struct {
|
||||
Kind int
|
||||
|
|
|
|||
Loading…
Reference in a new issue