diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
commit | 0d3169ef70032559e201a500aff2197a2854aa72 (patch) | |
tree | 89971815f95f8826ad1eee19985147d0635ca2ea /builtin_commandline.cpp | |
parent | fe3b439e31ce893d9345112e95a031aa5ec11183 (diff) |
Run restyle.sh to enforce style rules.
Diffstat (limited to 'builtin_commandline.cpp')
-rw-r--r-- | builtin_commandline.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/builtin_commandline.cpp b/builtin_commandline.cpp index 36726b9f..88084c3b 100644 --- a/builtin_commandline.cpp +++ b/builtin_commandline.cpp @@ -357,7 +357,7 @@ static int builtin_commandline(parser_t &parser, wchar_t **argv) case 's': selection_mode = 1; break; - + case 'P': paging_mode = 1; break; @@ -431,16 +431,16 @@ static int builtin_commandline(parser_t &parser, wchar_t **argv) const wchar_t *buffer = reader_get_buffer(); if (reader_get_selection(&start, &len)) { - wchar_t *selection = new wchar_t[len + 1]; - selection[len] = L'\0'; - selection = wcsncpy(selection, buffer + start, len); + wchar_t *selection = new wchar_t[len + 1]; + selection[len] = L'\0'; + selection = wcsncpy(selection, buffer + start, len); - append_format(stdout_buffer, selection); - delete selection; + append_format(stdout_buffer, selection); + delete selection; } else { - append_format(stdout_buffer, L""); + append_format(stdout_buffer, L""); } return 0; } |