mirror of
https://github.com/walles/moar.git
synced 2024-11-27 01:05:23 +03:00
Fix more compile errors
This commit is contained in:
parent
43d955250a
commit
91f7fdad83
@ -359,13 +359,6 @@ func removeLastChar(s string) string {
|
||||
return s[:len(s)-size]
|
||||
}
|
||||
|
||||
func (p *Pager) scrollToEnd() {
|
||||
p.scrollPosition = scrollPosition{
|
||||
lineNumberOneBased: p.reader.GetLineCount(),
|
||||
// FIXME: Set deltaScreenLines as well so we're *really* at the end
|
||||
}
|
||||
}
|
||||
|
||||
func (p *Pager) onSearchKey(key twin.KeyCode) {
|
||||
switch key {
|
||||
case twin.KeyEscape, twin.KeyEnter:
|
||||
|
@ -298,6 +298,10 @@ func createLinePrefix(fileLineNumber *int, numberPrefixLength int) []twin.Cell {
|
||||
return lineNumberPrefix
|
||||
}
|
||||
|
||||
func (p *Pager) getLastVisiblePosition() scrollPosition {
|
||||
// FIXME: Compute this!
|
||||
}
|
||||
|
||||
func (p *Pager) getLastVisibleLineNumberOneBased() int {
|
||||
// FIXME: Compute this!
|
||||
}
|
||||
|
@ -185,3 +185,7 @@ func (p *Pager) deltaScreenLines() int {
|
||||
p.scrollPosition.internalDontTouch.canonicalize(p)
|
||||
return p.scrollPosition.internalDontTouch.deltaScreenLines
|
||||
}
|
||||
|
||||
func (p *Pager) scrollToEnd() {
|
||||
FIXME: Implement me!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user