mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Initialize variable, update musl script
This commit is contained in:
parent
1b88062310
commit
04c38ecf3d
|
@ -33,7 +33,7 @@ cp -v libcurses/libcurses.a libterminfo/libterminfo.a libs/
|
||||||
# Compile nnn
|
# Compile nnn
|
||||||
cd ..
|
cd ..
|
||||||
[ -e "./netbsd-curses" ] || rm "$BIN"
|
[ -e "./netbsd-curses" ] || rm "$BIN"
|
||||||
musl-gcc -O3 -DNORL -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static
|
musl-gcc -O3 -DNORL -DNOMOUSE -Wall -Wextra -Wshadow -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static
|
||||||
strip "$BIN"
|
strip "$BIN"
|
||||||
|
|
||||||
# Run the binary with it selected
|
# Run the binary with it selected
|
||||||
|
|
|
@ -5933,7 +5933,7 @@ static bool browse(char *ipath, const char *session, int pkey)
|
||||||
bool watch = FALSE;
|
bool watch = FALSE;
|
||||||
|
|
||||||
#ifndef NOMOUSE
|
#ifndef NOMOUSE
|
||||||
MEVENT event;
|
MEVENT event = {0};
|
||||||
struct timespec mousetimings[2] = {{.tv_sec = 0, .tv_nsec = 0}, {.tv_sec = 0, .tv_nsec = 0} };
|
struct timespec mousetimings[2] = {{.tv_sec = 0, .tv_nsec = 0}, {.tv_sec = 0, .tv_nsec = 0} };
|
||||||
int mousedent[2] = {-1, -1};
|
int mousedent[2] = {-1, -1};
|
||||||
bool currentmouse = 1, rightclicksel = 0;
|
bool currentmouse = 1, rightclicksel = 0;
|
||||||
|
|
Loading…
Reference in a new issue