mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Fix redraw
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user