mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
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:
committed by
Zachary Yedidia
parent
89acc703f5
commit
57c030d3b9
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user