diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-09-22 14:18:26 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-09-22 14:18:26 +0000 |
| commit | 0f4f201b6d9069f56c5f9ca7121dfd4def0dd759 (patch) | |
| tree | 5c8ecdc06ff958d743311cb7dcf6f99d3f70c74f | |
| parent | 03c199420ebeb186b89211bec8bfb1c1463bf8a8 (diff) | |
Selectors: fix select_matching
| -rw-r--r-- | src/selectors.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectors.cc b/src/selectors.cc index 80d61a45..d3f6835c 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -151,7 +151,7 @@ Selection select_matching(const BufferIterator& cursor) if (*it == closing) ++level; else if (*it == opening and --level == 0) - return Selection(begin, it); + return Selection(begin, it-1); --it; } } |
