aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2018-06-09 11:52:48 +0200
committerBert Münnich <ber.t@posteo.de>2018-06-09 11:52:48 +0200
commitcc476be7ccdcb573eb045f791091bd956dd88a26 (patch)
tree34df0ae31112446229823dfd21de9446270a8219
parent7efcf55a5f8b37150b1e5fa7724b1fd9853a7a3c (diff)
Remove unnecessary special cases in cg_mark_range
-rw-r--r--commands.c5
-rw-r--r--main.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index 33ae5a3..4ba7d3d 100644
--- a/commands.c
+++ b/commands.c
@@ -218,11 +218,6 @@ bool cg_mark_range(arg_t _)
{
int i, from, to;
- if (toggledidx < 0)
- return true;
- if (toggledidx == fileidx)
- return true;
-
from = toggledidx;
to = fileidx;
if (fileidx < toggledidx) {
diff --git a/main.c b/main.c
index b362c3e..ae7f853 100644
--- a/main.c
+++ b/main.c
@@ -57,7 +57,7 @@ fileinfo_t *files;
int filecnt, fileidx;
int alternate;
int markcnt;
-int toggledidx = -1;
+int toggledidx;
int prefix;
bool extprefix;