diff options
author | Christian Persch <chpe@gnome.org> | 2015-10-07 22:15:05 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-10-07 22:15:05 +0200 |
commit | 52c966d30ea4e95165835c3b41a43851679d53c5 (patch) | |
tree | f32aabb50b1c8843d18911608c26f2cd0cbf1f36 | |
parent | 2f9036ae59ac07de63788fa934e7a5dd323f1891 (diff) | |
download | vte-52c966d30ea4e95165835c3b41a43851679d53c5.tar.gz |
regex: Simplify code
These conditionals can only be true if we set [se]blank above,
so we can move them inside the block.
-rw-r--r-- | src/vte.cc | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1890,13 +1890,14 @@ vte_terminal_match_check_internal_gregex(VteTerminal *terminal, rm_so < eblank) { eblank = rm_so; } - } - if (sblank > start_blank) { - start_blank = sblank; - } - if (eblank < end_blank) { - end_blank = eblank; - } + + if (sblank > start_blank) { + start_blank = sblank; + } + if (eblank < end_blank) { + end_blank = eblank; + } + } g_match_info_next(match_info, NULL); } |