src/nnn.c | 8 +------- diff --git a/src/nnn.c b/src/nnn.c index 8fcfcebb115169f646e4e4b33f6c84d93d203a8b..854bc87e18ea6adc5ffcbf341d8834977ff8987c 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4684,7 +4684,6 @@ if (presel == 27) { presel = 0; break; } - goto nochange; case SEL_MFLTR: // fallthrough case SEL_TOGGLEDOT: // fallthrough @@ -4829,7 +4828,6 @@ /* Save current */ if (ndents) copycurname(); - /* Repopulate as directory content may have changed */ goto begin; } @@ -4849,10 +4847,8 @@ ++nselected; appendfpath(newpath, mkpath(path, dents[cur].name, newpath)); writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */ } else { - --nselected; selbufpos = lastappendpos; - - if (nselected) { + if (--nselected) { updateselbuf(path, newpath); writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */ } else @@ -4940,7 +4936,6 @@ if (cfg.filtermode) presel = FILTER; break; } - goto nochange; case SEL_SELEDIT: r = editselection(); @@ -5292,7 +5287,6 @@ /* Save current */ if (ndents) copycurname(); - /* Repopulate as directory content may have changed */ goto begin; case SEL_ARCHIVEOPS: