]> git.lizzy.rs Git - micro.git/blobdiff - internal/display/termwindow.go
Clicking tabbar arrow scrolls and fix multicursor
[micro.git] / internal / display / termwindow.go
index 95a9003764064f5aade804ebbcc2e202b0bb40e1..c7d82ecbc9eaf929e4eafdf6eda2ec863804fd86 100644 (file)
@@ -51,7 +51,7 @@ func (w *TermWindow) LocFromVisual(vloc buffer.Loc) buffer.Loc {
 func (w *TermWindow) Clear() {
        for y := 0; y < w.Height; y++ {
                for x := 0; x < w.Width; x++ {
-                       screen.Screen.SetContent(w.X+x, w.Y+y, ' ', nil, config.DefStyle)
+                       screen.SetContent(w.X+x, w.Y+y, ' ', nil, config.DefStyle)
                }
        }
 }
@@ -88,7 +88,7 @@ func (w *TermWindow) Display() {
                                st = st.Reverse(true)
                        }
 
-                       screen.Screen.SetContent(w.X+x, w.Y+y, c, nil, st)
+                       screen.SetContent(w.X+x, w.Y+y, c, nil, st)
                }
        }
        if config.GetGlobalOption("statusline").(bool) {
@@ -103,14 +103,14 @@ func (w *TermWindow) Display() {
                        if x < textLen {
                                r, size := utf8.DecodeRune(text)
                                text = text[size:]
-                               screen.Screen.SetContent(w.X+x, w.Y+w.Height, r, nil, statusLineStyle)
+                               screen.SetContent(w.X+x, w.Y+w.Height, r, nil, statusLineStyle)
                        } else {
-                               screen.Screen.SetContent(w.X+x, w.Y+w.Height, ' ', nil, statusLineStyle)
+                               screen.SetContent(w.X+x, w.Y+w.Height, ' ', nil, statusLineStyle)
                        }
                }
        }
        if w.State.CursorVisible() && w.active {
                curx, cury := w.State.Cursor()
-               screen.Screen.ShowCursor(curx+w.X, cury+w.Y)
+               screen.ShowCursor(curx+w.X, cury+w.Y)
        }
 }