mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 06:30:28 +09:00
Readded title setting. ( As per the tcell pull. ) (#600)
This commit is contained in:
committed by
Zachary Yedidia
parent
0e9bc0ed87
commit
aed8ba105a
@@ -931,6 +931,7 @@ func (v *View) DisplayCursor(x, y int) {
|
||||
|
||||
// Display renders the view, the cursor, and statusline
|
||||
func (v *View) Display() {
|
||||
screen.SetTitle("micro: " + v.Buf.GetName())
|
||||
v.DisplayView()
|
||||
// Don't draw the cursor if it is out of the viewport or if it has a selection
|
||||
if (v.Cursor.Y-v.Topline < 0 || v.Cursor.Y-v.Topline > v.Height-1) || v.Cursor.HasSelection() {
|
||||
|
||||
Reference in New Issue
Block a user