mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
More linter fixes
This commit is contained in:
@@ -297,7 +297,9 @@ func (self *Collection) collect_files(left, right string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = walk(right, conf.Ignore_name, right_names, right_path_map, path_name_map)
|
||||
if err = walk(right, conf.Ignore_name, right_names, right_path_map, path_name_map); err != nil {
|
||||
return err
|
||||
}
|
||||
common_names := left_names.Intersect(right_names)
|
||||
changed_names := utils.NewSet[string](common_names.Len())
|
||||
for n := range common_names.Iterable() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user