mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Add some const, fix spaces
This commit is contained in:
parent
03e36bda72
commit
fd15d30987
2 changed files with 5 additions and 5 deletions
|
@ -3576,10 +3576,10 @@ const wchar_t *reader_readline(void)
|
||||||
/* Make sure we have two tokens */
|
/* Make sure we have two tokens */
|
||||||
if (prev_begin < prev_end && tok_begin < tok_end && tok_begin > prev_begin)
|
if (prev_begin < prev_end && tok_begin < tok_end && tok_begin > prev_begin)
|
||||||
{
|
{
|
||||||
wcstring prev(prev_begin, prev_end - prev_begin);
|
const wcstring prev(prev_begin, prev_end - prev_begin);
|
||||||
wcstring sep(prev_end, tok_begin - prev_end);
|
const wcstring sep(prev_end, tok_begin - prev_end);
|
||||||
wcstring tok(tok_begin, tok_end - tok_begin);
|
const wcstring tok(tok_begin, tok_end - tok_begin);
|
||||||
wcstring trail(tok_end, &buff[len] - tok_end);
|
const wcstring trail(tok_end, &buff[len] - tok_end);
|
||||||
|
|
||||||
/* Compose new command line with swapped tokens */
|
/* Compose new command line with swapped tokens */
|
||||||
wcstring new_buff(buff, prev_begin - buff);
|
wcstring new_buff(buff, prev_begin - buff);
|
||||||
|
|
Loading…
Reference in a new issue