mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
Remove chardet dependency
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user