]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/tab.go
Use messenger error instead of termerror
[micro.git] / cmd / micro / tab.go
index be1f364f981d955142c4270b65c249ace9e1fd2e..941e787aac56619ce4e3d9302c1d46b45b31b275 100644 (file)
@@ -2,7 +2,6 @@ package main
 
 import (
        "sort"
-       "path/filepath"
 
        "github.com/zyedidia/tcell"
 )
@@ -90,15 +89,17 @@ func TabbarString() (string, map[int]int) {
                } else {
                        str += " "
                }
-               //To address issue 556.2
-               _, name := filepath.Split(t.views[t.CurView].Buf.GetName())
-               str += name
+               buf := t.views[t.CurView].Buf
+               str += buf.GetName()
+               if buf.IsModified {
+                       str += " +"
+               }
                if i == curTab {
                        str += "]"
                } else {
                        str += " "
                }
-               indicies[len(str)-1] = i + 1
+               indicies[Count(str)-1] = i + 1
                str += " "
        }
        return str, indicies