Browse Source

Remove unnecessary special cases in cg_mark_range

master
Bert Münnich 6 years ago
parent
commit
cc476be7cc
2 changed files with 1 additions and 6 deletions
  1. +0
    -5
      commands.c
  2. +1
    -1
      main.c

+ 0
- 5
commands.c 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) {


+ 1
- 1
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;


Loading…
Cancel
Save