Remove unnecessary special cases in cg_mark_range

This commit is contained in:
Bert Münnich 2018-06-09 11:52:48 +02:00
parent 7efcf55a5f
commit cc476be7cc
2 changed files with 1 additions and 6 deletions

View File

@ -218,11 +218,6 @@ bool cg_mark_range(arg_t _)
{ {
int i, from, to; int i, from, to;
if (toggledidx < 0)
return true;
if (toggledidx == fileidx)
return true;
from = toggledidx; from = toggledidx;
to = fileidx; to = fileidx;
if (fileidx < toggledidx) { if (fileidx < toggledidx) {

2
main.c
View File

@ -57,7 +57,7 @@ fileinfo_t *files;
int filecnt, fileidx; int filecnt, fileidx;
int alternate; int alternate;
int markcnt; int markcnt;
int toggledidx = -1; int toggledidx;
int prefix; int prefix;
bool extprefix; bool extprefix;