mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Fix redraw
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package buffer
|
package buffer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"time"
|
"time"
|
||||||
"unicode/utf8"
|
"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)
|
e.Deltas[0].End = start.MoveLA(utf8.RuneCount(text), eh.buf.LineArray)
|
||||||
end := e.Deltas[0].End
|
end := e.Deltas[0].End
|
||||||
|
|
||||||
log.Println(eh.cursors)
|
|
||||||
for _, c := range eh.cursors {
|
for _, c := range eh.cursors {
|
||||||
move := func(loc Loc) Loc {
|
move := func(loc Loc) Loc {
|
||||||
if start.Y != end.Y && loc.GreaterThan(start) {
|
if start.Y != end.Y && loc.GreaterThan(start) {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ func TempStart(screenWasNil bool) {
|
|||||||
|
|
||||||
// Init creates and initializes the tcell screen
|
// Init creates and initializes the tcell screen
|
||||||
func Init() {
|
func Init() {
|
||||||
DrawChan = make(chan bool)
|
DrawChan = make(chan bool, 8)
|
||||||
|
|
||||||
// Should we enable true color?
|
// Should we enable true color?
|
||||||
truecolor := os.Getenv("MICRO_TRUECOLOR") == "1"
|
truecolor := os.Getenv("MICRO_TRUECOLOR") == "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user