Skip to content

Commit

Permalink
Merge pull request yi-editor#51 from rustydc/patch-1
Browse files Browse the repository at this point in the history
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
ethercrow committed Nov 11, 2012
2 parents 5147899 + 1d8f56b commit 15ee2f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yi/src/library/Yi/Buffer/Misc.hs
Expand Up @@ -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
Expand Down

0 comments on commit 15ee2f1

Please sign in to comment.