From ab7bf8b0e87ca12c40ce575e259aeca771328ab3 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 2 Jan 2010 04:21:09 +0100 Subject: browser: fixed scrolling --- ranger/gui/widgets/browsercolumn.py | 1 + ranger/gui/widgets/browserview.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index cca9e1f6..f392aecc 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -288,6 +288,7 @@ class BrowserColumn(Pager, Widget): # relative > 1 and you scroll from scroll_begin = 1 to 0 def scroll(self, relative): """scroll by n lines""" + self.need_redraw = True self._set_scroll_begin() old_value = self.target.scroll_begin self.target.scroll_begin += relative diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 642ad198..1635cbe0 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -107,9 +107,9 @@ class BrowserView(Widget, DisplayableContainer): def click(self, event): n = event.ctrl() and 1 or 3 if event.pressed(4): - self.fm.scroll(relative = -n) + self.main_column.scroll(relative = -n) elif event.pressed(2) or event.key_invalid(): - self.fm.scroll(relative = n) + self.main_column.scroll(relative = n) else: DisplayableContainer.click(self, event) -- cgit 1.4.1-2-gfad0 refs log tree commit diff stats
path: root/060rewrite_literal_string.cc
blob: 95e38924695fa7dcffce1c7107e754ad104f8366 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76