1
1
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:
Johan Walles 2022-02-26 12:28:57 +01:00
parent 43d955250a
commit 91f7fdad83
3 changed files with 8 additions and 7 deletions

View File

@ -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:

View File

@ -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!
}

View File

@ -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!
}