summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
diff options
context:
space:
mode:
authorYJ Lee <ls4154.lee@gmail.com>2021-01-14 16:25:23 +0900
committerBenBE <BenBE@geshi.org>2021-01-28 09:21:18 +0100
commit34da6fdadb3d9a01559d120a262a044c2c55b22b (patch)
tree44539768c0b087663987eeec186c64365e8ce18b /InfoScreen.c
parente54a790b1409462a26112eac877c89837795851f (diff)
Avoid syntax injection inside code block
Co-authored-by: BenBE <BenBE@geshi.org>
Diffstat (limited to 'InfoScreen.c')
-rw-r--r--InfoScreen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/InfoScreen.c b/InfoScreen.c
index 76d9838a..5c5bcf39 100644
--- a/InfoScreen.c
+++ b/InfoScreen.c
@@ -116,13 +116,14 @@ void InfoScreen_run(InfoScreen* this) {
} else if (mevent.y == LINES - 1) {
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
}
+ }
#if NCURSES_MOUSE_VERSION > 1
- } else if (mevent.bstate & BUTTON4_PRESSED) {
+ else if (mevent.bstate & BUTTON4_PRESSED) {
ch = KEY_WHEELUP;
} else if (mevent.bstate & BUTTON5_PRESSED) {
ch = KEY_WHEELDOWN;
- #endif
}
+ #endif
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy