Added title setting (Requires tcell pull!) and optimized tab display. (#575)

* Added title setting (Requires tcell pull!) and optimized tab display.

* Changed tcell call to screen.

* Fixed bad reference for getting Buffer name.
This commit is contained in:
CaptainMcClellan
2017-03-02 11:27:49 -06:00
committed by Zachary Yedidia
parent 89acc703f5
commit 57c030d3b9
2 changed files with 6 additions and 1 deletions

View File

@@ -976,6 +976,8 @@ func (v *View) DisplayCursor(x, y int) {
// Display renders the view, the cursor, and statusline
func (v *View) Display() {
//Set title to the name of the current buffer
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() {