mirror of
https://github.com/jarun/nnn.git
synced 2025-01-08 09:01:11 +00:00
Remove redundant macro
This commit is contained in:
parent
baca4693ec
commit
60f310160a
18
src/nnn.c
18
src/nnn.c
|
@ -611,9 +611,7 @@ static char * const utils[] = {
|
||||||
#define MSG_RM_TMP 39
|
#define MSG_RM_TMP 39
|
||||||
#define MSG_INVALID_KEY 40
|
#define MSG_INVALID_KEY 40
|
||||||
#define MSG_NOCHANGE 41
|
#define MSG_NOCHANGE 41
|
||||||
#ifndef DIR_LIMITED_SELECTION
|
#define MSG_DIR_CHANGED 42
|
||||||
#define MSG_DIR_CHANGED 42 /* Must be the last entry */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static const char * const messages[] = {
|
static const char * const messages[] = {
|
||||||
"",
|
"",
|
||||||
|
@ -658,9 +656,7 @@ static const char * const messages[] = {
|
||||||
"remove tmp file?",
|
"remove tmp file?",
|
||||||
"invalid key",
|
"invalid key",
|
||||||
"unchanged",
|
"unchanged",
|
||||||
#ifndef DIR_LIMITED_SELECTION
|
"dir changed, range sel off",
|
||||||
"dir changed, range sel off", /* Must be the last entry */
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Supported configuration environment variables */
|
/* Supported configuration environment variables */
|
||||||
|
@ -6239,6 +6235,7 @@ static bool browse(char *ipath, const char *session, int pkey)
|
||||||
int r = -1, presel, selstartid = 0, selendid = 0;
|
int r = -1, presel, selstartid = 0, selendid = 0;
|
||||||
const uchar_t opener_flags = (cfg.cliopener ? F_CLI : (F_NOTRACE | F_NOSTDIN | F_NOWAIT));
|
const uchar_t opener_flags = (cfg.cliopener ? F_CLI : (F_NOTRACE | F_NOSTDIN | F_NOWAIT));
|
||||||
bool watch = FALSE;
|
bool watch = FALSE;
|
||||||
|
ino_t inode = 0;
|
||||||
|
|
||||||
#ifndef NOMOUSE
|
#ifndef NOMOUSE
|
||||||
MEVENT event = {0};
|
MEVENT event = {0};
|
||||||
|
@ -6247,10 +6244,6 @@ static bool browse(char *ipath, const char *session, int pkey)
|
||||||
bool currentmouse = 1, rightclicksel = 0;
|
bool currentmouse = 1, rightclicksel = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DIR_LIMITED_SELECTION
|
|
||||||
ino_t inode = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
atexit(dentfree);
|
atexit(dentfree);
|
||||||
|
|
||||||
xlines = LINES;
|
xlines = LINES;
|
||||||
|
@ -7014,19 +7007,16 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_state.rangesel) { /* Range selection started */
|
if (g_state.rangesel) { /* Range selection started */
|
||||||
#ifndef DIR_LIMITED_SELECTION
|
|
||||||
inode = sb.st_ino;
|
inode = sb.st_ino;
|
||||||
#endif
|
|
||||||
selstartid = cur;
|
selstartid = cur;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef DIR_LIMITED_SELECTION
|
|
||||||
if (inode != sb.st_ino) {
|
if (inode != sb.st_ino) {
|
||||||
printwait(messages[MSG_DIR_CHANGED], &presel);
|
printwait(messages[MSG_DIR_CHANGED], &presel);
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (cur < selstartid) {
|
if (cur < selstartid) {
|
||||||
selendid = selstartid;
|
selendid = selstartid;
|
||||||
selstartid = cur;
|
selstartid = cur;
|
||||||
|
|
Loading…
Reference in a new issue