diff options
author | 2013-10-26 15:27:39 -0700 | |
---|---|---|
committer | 2013-10-26 15:27:39 -0700 | |
commit | cf766b55cca979745f6c218d78f9cdcc297b3f20 (patch) | |
tree | d5c31f6aaa56aaa4ac7c967c91d6e822d0f8d27d /parse_util.cpp | |
parent | 03c65d7a96c9cadc9feff339ca0af7f43eb7391e (diff) |
Fix formatting
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index 5d8a1b1d..3cf407d1 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -245,10 +245,10 @@ void parse_util_cmdsubst_extent(const wchar_t *buff, size_t cursor_pos, const wc const wchar_t * const cursor = buff + cursor_pos; CHECK(buff,); - + const size_t bufflen = wcslen(buff); assert(cursor_pos <= bufflen); - + /* ap and bp are the beginning and end of the tightest command substitition found so far */ const wchar_t *ap = buff, *bp = buff + bufflen; const wchar_t *pos = buff; @@ -265,7 +265,7 @@ void parse_util_cmdsubst_extent(const wchar_t *buff, size_t cursor_pos, const wc { end = const_cast<wchar_t *>(buff) + bufflen; } - + if (begin < cursor && end >= cursor) { /* This command substitution surrounds the cursor, so it's a tighter fit */ @@ -290,7 +290,7 @@ void parse_util_cmdsubst_extent(const wchar_t *buff, size_t cursor_pos, const wc assert(pos <= buff + bufflen); } } - + if (a != NULL) *a = ap; if (b != NULL) *b = bp; } @@ -383,7 +383,7 @@ static void job_or_process_extent(const wchar_t *buff, break; } - + default: { break; |