mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Improve gutter messages
This commit is contained in:
@@ -67,6 +67,10 @@ func (w *BufWindow) SetActive(b bool) {
|
||||
w.active = b
|
||||
}
|
||||
|
||||
func (w *BufWindow) IsActive() bool {
|
||||
return w.active
|
||||
}
|
||||
|
||||
func (w *BufWindow) getStartInfo(n, lineN int) ([]byte, int, int, *tcell.Style) {
|
||||
tabsize := util.IntOpt(w.Buf.Settings["tabsize"])
|
||||
width := 0
|
||||
|
||||
@@ -63,6 +63,7 @@ func (i *InfoWindow) Relocate() bool { return false }
|
||||
func (i *InfoWindow) GetView() *View { return i.View }
|
||||
func (i *InfoWindow) SetView(v *View) {}
|
||||
func (i *InfoWindow) SetActive(b bool) {}
|
||||
func (i *InfoWindow) IsActive() bool { return true }
|
||||
|
||||
func (i *InfoWindow) GetMouseLoc(vloc buffer.Loc) buffer.Loc {
|
||||
c := i.Buffer.GetActiveCursor()
|
||||
|
||||
@@ -40,6 +40,10 @@ func (w *TermWindow) SetActive(b bool) {
|
||||
w.active = b
|
||||
}
|
||||
|
||||
func (w *TermWindow) IsActive() bool {
|
||||
return w.active
|
||||
}
|
||||
|
||||
func (w *TermWindow) GetMouseLoc(vloc buffer.Loc) buffer.Loc {
|
||||
return vloc
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ type Window interface {
|
||||
GetMouseLoc(vloc buffer.Loc) buffer.Loc
|
||||
Resize(w, h int)
|
||||
SetActive(b bool)
|
||||
IsActive() bool
|
||||
}
|
||||
|
||||
type BWindow interface {
|
||||
|
||||
Reference in New Issue
Block a user