Skip to content

Commit

Permalink
Reset last line number when it's removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
onovy committed Sep 26, 2015
1 parent f3d1508 commit 6dc6dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gui.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,9 @@ public function start() {
if ($this->changed()) {
$this->notice('Todo ' . $num . ' removed');
}
if ($num === $this->lastLineNumber) {
$this->lastLineNumber = null;
}
} else {
$this->error('Todo ' . $num . ' NOT removed');
}
Expand Down

0 comments on commit 6dc6dd4

Please sign in to comment.