aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-11-24 12:38:25 +0100
committerGitHub <noreply@github.com>2021-11-24 12:38:25 +0100
commit0262988671d41a2828614822ebad645cf9b780b9 (patch)
tree84a4ec791f89632543b7ec2eba2adc4c4b289adf /main.c
parent7d87e6e412badab61fe67b9a00ca686195631e05 (diff)
downloadnsxiv-0262988671d41a2828614822ebad645cf9b780b9.tar.zst
rename: keyhandler_abort -> KEYHANDLER_ABORT (#172)
with the exception of arrays, all other var names in config.h are in ALL CAPS. since keyhandler_abort is an unreleased feature, it should be okay to rename it for consistency. though.. in the future we should be more careful about naming when adding new vars to config.h (or the codebase in general.)
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 8739d69..85d498d 100644
--- a/main.c
+++ b/main.c
@@ -499,7 +499,7 @@ void handle_key_handler(bool init)
if (init) {
close_info();
snprintf(win.bar.l.buf, win.bar.l.size, "Getting key handler input "
- "(%s to abort)...", XKeysymToString(keyhandler_abort));
+ "(%s to abort)...", XKeysymToString(KEYHANDLER_ABORT));
} else { /* abort */
open_info();
update_info();
@@ -642,7 +642,7 @@ static void on_keypress(XKeyEvent *kev)
}
if (IsModifierKey(ksym))
return;
- if (extprefix && ksym == keyhandler_abort && MODMASK(kev->state) == 0) {
+ if (extprefix && ksym == KEYHANDLER_ABORT && MODMASK(kev->state) == 0) {
handle_key_handler(false);
} else if (extprefix) {
run_key_handler(XKeysymToString(ksym), kev->state & ~sh);