summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorLuXu <oliver_lew@outlook.com>2021-11-04 05:20:28 +0100
committerGitHub <noreply@github.com>2021-11-04 05:20:28 +0100
commit36f42081d0d3e6f401e18bf84f6796ca8f8bcfb5 (patch)
tree0cca3a0880cd47fb1e21d8d16ff291e83337ec20 /commands.c
parentabf316a066ed19e2f6c1a38c7faaa594de7287c4 (diff)
downloadnsxiv-36f42081d0d3e6f401e18bf84f6796ca8f8bcfb5.tar.zst
make width of navigation area configurable (#155)
this allows users to configure navigation width from config.h. it also allows disabling the navigation function entirely by using a 0 width. one extra functionality this adds is being able to define an absolute width (in pixels) instead of just percentage via `NAV_IS_REL`. Co-authored-by: NRK <nrk@disroot.org>
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index cab44ee..f44cee1 100644
--- a/commands.c
+++ b/commands.c
@@ -29,7 +29,7 @@ void load_image(int);
bool mark_image(int, bool);
void close_info(void);
void open_info(void);
-int ptr_third_x(void);
+int nav_button(void);
void redraw(void);
void reset_cursor(void);
void animate(void);
@@ -286,7 +286,7 @@ bool ci_navigate(arg_t n)
bool ci_cursor_navigate(arg_t _)
{
- return ci_navigate(ptr_third_x() - 1);
+ return ci_navigate(nav_button() - 1);
}
bool ci_alternate(arg_t _)