Use fake cursor for windows

This commit is contained in:
Zachary Yedidia
2020-01-01 20:47:05 -05:00
parent e98be1a1e5
commit d9e262c394

View File

@@ -1,15 +1,16 @@
package display
import (
"runtime"
"strconv"
"unicode/utf8"
"github.com/zyedidia/tcell"
runewidth "github.com/mattn/go-runewidth"
"github.com/zyedidia/micro/internal/buffer"
"github.com/zyedidia/micro/internal/config"
"github.com/zyedidia/micro/internal/screen"
"github.com/zyedidia/micro/internal/util"
"github.com/zyedidia/tcell"
)
// The BufWindow provides a way of displaying a certain section
@@ -339,7 +340,7 @@ func (w *BufWindow) getStyle(style tcell.Style, bloc buffer.Loc, r rune) (tcell.
func (w *BufWindow) showCursor(x, y int, main bool) {
if w.active {
if main {
if main && runtime.GOOS != "windows" {
screen.Screen.ShowCursor(x, y)
} else {
r, _, _, _ := screen.Screen.GetContent(x, y)