mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Initialize mask
This commit is contained in:
parent
9b45b05746
commit
abd1df8770
|
@ -1209,8 +1209,7 @@ static bool initcurses(mmask_t *oldmask)
|
||||||
#if NCURSES_MOUSE_VERSION <= 1
|
#if NCURSES_MOUSE_VERSION <= 1
|
||||||
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED, oldmask);
|
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED, oldmask);
|
||||||
#else
|
#else
|
||||||
mousemask(BUTTON1_PRESSED | BUTTON4_PRESSED | BUTTON5_PRESSED,
|
mousemask(BUTTON1_PRESSED | BUTTON4_PRESSED | BUTTON5_PRESSED, oldmask);
|
||||||
oldmask);
|
|
||||||
#endif
|
#endif
|
||||||
mouseinterval(0);
|
mouseinterval(0);
|
||||||
curs_set(FALSE); /* Hide cursor */
|
curs_set(FALSE); /* Hide cursor */
|
||||||
|
@ -5868,7 +5867,7 @@ static void cleanup(void)
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
mmask_t mask;
|
mmask_t mask = 0;
|
||||||
char *arg = NULL;
|
char *arg = NULL;
|
||||||
char *session = NULL;
|
char *session = NULL;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
Loading…
Reference in a new issue