Permalink
Browse files

Update yi/src/library/Yi/Buffer/Misc.hs

Set percentage to 'Top' at position zero instead of one.
Add 'Bot' for the last position.
  • Loading branch information...
1 parent 0cd335f commit 1d8f56b33b69e1db6d574433425db4ddaff1ac31 @rustydc rustydc committed Nov 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 yi/src/library/Yi/Buffer/Misc.hs
View
4 yi/src/library/Yi/Buffer/Misc.hs
@@ -468,8 +468,10 @@ defaultModeLine prefix = do
ro <-getA readOnlyA
modeNm <- gets (withMode0 modeName)
unchanged <- gets isUnchangedBuffer
- let pct = if (pos == 1) || (s == 0)
+ let pct = if (pos == 0) || (s == 0)
then " Top"
+ else if (pos == s)
+ then " Bot"
else getPercent p s
chg = if unchanged then "-" else "*"
roStr = if ro then "%" else chg

0 comments on commit 1d8f56b

Please sign in to comment.