More linter fixes

This commit is contained in:
Kovid Goyal
2023-09-18 21:07:39 +05:30
parent 7faf216f9e
commit 1a32e62ebf
7 changed files with 14 additions and 15 deletions

View File

@@ -627,11 +627,9 @@ func (self *Handler) dispatch_action(name, args string) error {
}
done = self.scroll_lines(amt) != 0
default:
npos := self.scroll_pos
npos := ScrollPos{}
if strings.Contains(args, `end`) {
npos = self.max_scroll_pos
} else {
npos = ScrollPos{}
}
done = npos != self.scroll_pos
self.scroll_pos = npos