1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/os-specific/linux/powertop/fix-vertical-scrolling.patch
Will Dietz a5a26cfa86 powertop: patch to fix vertical scrolling
From mailing list (thanks!).
2019-03-22 14:17:18 -05:00

14 lines
536 B
Diff

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);