3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/powertop/fix-vertical-scrolling.patch

14 lines
536 B
Diff
Raw Normal View History

diff --git a/src/display.cpp b/src/display.cpp
index 07227c5..7b3a7a2 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -244,7 +244,7 @@ void cursor_down(void)
w = tab_windows[tab_names[current_tab]];
if (w) {
if (w->ypad_pos < 1000) {
- if (tab_names[current_tab] == "Tunables" || "WakeUp") {
+ if (tab_names[current_tab] == "Tunables" || tab_names[current_tab] == "WakeUp") {
if ((w->cursor_pos + 7) >= LINES) {
prefresh(w->win, ++w->ypad_pos, w->xpad_pos,
1, 0, LINES - 3, COLS - 1);