Add header parsing for files without extensions

This commit is contained in:
Zachary Yedidia
2016-03-20 17:08:57 -04:00
parent 4b286bf293
commit fbeb1bf6bd
3 changed files with 34 additions and 13 deletions

View File

@@ -39,8 +39,6 @@ func NewViewWidthHeight(buf *Buffer, s tcell.Screen, w, h int) *View {
v.buf = buf
v.s = s
v.buf.rules, v.buf.filetype = GetRules(v.buf.path)
v.topline = 0
v.height = h - 1
v.width = w