Readded title setting. ( As per the tcell pull. ) (#600)

This commit is contained in:
Collin Warren
2017-04-29 14:51:31 -05:00
committed by Zachary Yedidia
parent 0e9bc0ed87
commit aed8ba105a

View File

@@ -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() {