Fix redraw

This commit is contained in:
Zachary Yedidia
2019-01-14 19:57:19 -05:00
parent 5671e039b9
commit 055fff2b08
2 changed files with 1 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
package buffer
import (
"log"
"time"
"unicode/utf8"
@@ -117,7 +116,6 @@ func (eh *EventHandler) Insert(start Loc, textStr string) {
e.Deltas[0].End = start.MoveLA(utf8.RuneCount(text), eh.buf.LineArray)
end := e.Deltas[0].End
log.Println(eh.cursors)
for _, c := range eh.cursors {
move := func(loc Loc) Loc {
if start.Y != end.Y && loc.GreaterThan(start) {

View File

@@ -54,7 +54,7 @@ func TempStart(screenWasNil bool) {
// Init creates and initializes the tcell screen
func Init() {
DrawChan = make(chan bool)
DrawChan = make(chan bool, 8)
// Should we enable true color?
truecolor := os.Getenv("MICRO_TRUECOLOR") == "1"