diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index c971006f..bc221671 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -1220,6 +1220,20 @@ xact_t * instance_t::parse_xact(char * line, } } + if (xact->_state == item_t::UNCLEARED) { + item_t::state_t result = item_t::CLEARED; + + foreach (post_t * post, xact->posts) { + if (post->_state == item_t::UNCLEARED) { + result = item_t::UNCLEARED; + break; + } + else if (post->_state == item_t::PENDING) { + result = item_t::PENDING; + } + } + } + xact->end_pos = curr_pos; xact->end_line = linenum; |