mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix indentation
This commit is contained in:
parent
c3545dd82f
commit
ef3eab073e
29
nnn.c
29
nnn.c
|
@ -452,7 +452,6 @@ xdirname(const char *path)
|
||||||
static char *buf = g_buf;
|
static char *buf = g_buf;
|
||||||
static char *last_slash, *runp;
|
static char *last_slash, *runp;
|
||||||
|
|
||||||
|
|
||||||
xstrlcpy(buf, path, PATH_MAX);
|
xstrlcpy(buf, path, PATH_MAX);
|
||||||
|
|
||||||
/* Find last '/'. */
|
/* Find last '/'. */
|
||||||
|
@ -949,23 +948,23 @@ filterentries(char *path)
|
||||||
|
|
||||||
while ((r = get_wch(ch)) != ERR) {
|
while ((r = get_wch(ch)) != ERR) {
|
||||||
if (*ch == 127 /* handle DEL */ || *ch == KEY_DC || *ch == KEY_BACKSPACE) {
|
if (*ch == 127 /* handle DEL */ || *ch == KEY_DC || *ch == KEY_BACKSPACE) {
|
||||||
if (len == 1) {
|
if (len == 1) {
|
||||||
cur = oldcur;
|
cur = oldcur;
|
||||||
*ch = CONTROL('L');
|
*ch = CONTROL('L');
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
wln[--len] = '\0';
|
wln[--len] = '\0';
|
||||||
if (len == 1)
|
if (len == 1)
|
||||||
cur = oldcur;
|
cur = oldcur;
|
||||||
|
|
||||||
wcstombs(ln, wln, REGEX_MAX);
|
wcstombs(ln, wln, REGEX_MAX);
|
||||||
ndents = total;
|
ndents = total;
|
||||||
if (matches(pln) == -1)
|
if (matches(pln) == -1)
|
||||||
continue;
|
|
||||||
redraw(path);
|
|
||||||
printprompt(ln);
|
|
||||||
continue;
|
continue;
|
||||||
|
redraw(path);
|
||||||
|
printprompt(ln);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r == OK) {
|
if (r == OK) {
|
||||||
|
|
Loading…
Reference in a new issue