mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-26 16:01:15 -03:00
Fixed compilation on Linux
Addresses issue https://github.com/fish-shell/fish-shell/issues/264
This commit is contained in:
@@ -2344,7 +2344,7 @@ void parser_t::eval_job( tokenizer *tok )
|
||||
{
|
||||
if( job_start_pos < tok_get_pos( tok ) )
|
||||
{
|
||||
long stop_pos = tok_get_pos( tok );
|
||||
int stop_pos = tok_get_pos( tok );
|
||||
const wchar_t *newline = wcschr(tok_string(tok)+start_pos, L'\n');
|
||||
if( newline )
|
||||
stop_pos = mini( stop_pos, newline - tok_string(tok) );
|
||||
|
||||
Reference in New Issue
Block a user