summaryrefslogtreecommitdiff
path: root/src/selectors.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-01-05 14:30:26 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-01-05 14:30:26 +0000
commit1e6fbf548b9df926a6e989f00a16aac794246648 (patch)
treea883a71e004d39f2b3f13325b040ea76c0ffd478 /src/selectors.cc
parentfeaf197caefdb08b6cd8b3e187defd5d22e23c6f (diff)
Fix some tabs in the code
Diffstat (limited to 'src/selectors.cc')
-rw-r--r--src/selectors.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/selectors.cc b/src/selectors.cc
index 91869c5c..509c79a5 100644
--- a/src/selectors.cc
+++ b/src/selectors.cc
@@ -141,16 +141,16 @@ Selection select_surrounding(const Buffer& buffer, const Selection& selection,
CodepointPair matching, int level,
ObjectFlags flags)
{
- const bool nestable = matching.first != matching.second;
- auto pos = selection.last();
- if (not nestable or flags & ObjectFlags::Inner)
- {
+ const bool nestable = matching.first != matching.second;
+ auto pos = selection.last();
+ if (not nestable or flags & ObjectFlags::Inner)
+ {
if (auto res = find_surrounding(buffer, pos, matching, flags, level))
return *res;
return selection;
- }
+ }
- auto c = buffer.byte_at(pos);
+ auto c = buffer.byte_at(pos);
if ((flags == ObjectFlags::ToBegin and c == matching.first) or
(flags == ObjectFlags::ToEnd and c == matching.second))
++level;