summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2016-03-02 20:39:15 +0100
committerJoel Klinghed <the_jk@yahoo.com>2016-03-02 20:39:15 +0100
commit67362896a37742e880025b9c85c4fe49d690ba02 (patch)
treea94da6896d450311cc304f8eb30460bb7a7f2f6b
parent2e3471f457c6768d075ac7b41e78426ae3fcea9d (diff)
Fix update command when index is specified
Before "/event update 1 text 'foo'" would ignore the argument after the index
-rw-r--r--src/event_main.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/event_main.cc b/src/event_main.cc
index f9b7dde..ffcf4b5 100644
--- a/src/event_main.cc
+++ b/src/event_main.cc
@@ -207,7 +207,6 @@ bool update(EventUtils* utils,
}
first_event = events.front()->id();
event.swap(events[indexes.front()]);
- ++it;
} else {
event = utils->next();
if (!utils->good()) return true;