mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Check that there are a sufficient number of arguments for fish_pager
darcs-hash:20051012070351-ac50b-b1f72df88819e58542b00ba35cc5d75e125b9655.gz
This commit is contained in:
parent
93293b3557
commit
a3b8b0ab4b
1 changed files with 46 additions and 42 deletions
12
fish_pager.c
12
fish_pager.c
|
@ -57,7 +57,7 @@ enum
|
||||||
HIGHLIGHT_PAGER_DESCRIPTION,
|
HIGHLIGHT_PAGER_DESCRIPTION,
|
||||||
HIGHLIGHT_PAGER_PROGRESS
|
HIGHLIGHT_PAGER_PROGRESS
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This struct should be continually updated by signals as the term
|
This struct should be continually updated by signals as the term
|
||||||
|
@ -946,8 +946,12 @@ int main( int argc, char **argv )
|
||||||
|
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
if( argc < 3 )
|
||||||
|
{
|
||||||
|
debug( 0, L"Insufficient arguments" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
prefix = str2wcs( argv[2] );
|
prefix = str2wcs( argv[2] );
|
||||||
is_quoted = strcmp( "1", argv[1] )==0;
|
is_quoted = strcmp( "1", argv[1] )==0;
|
||||||
|
|
||||||
|
@ -985,7 +989,7 @@ int main( int argc, char **argv )
|
||||||
fwprintf( out_file, L"%ls", (wchar_t *)out_buff.buff );
|
fwprintf( out_file, L"%ls", (wchar_t *)out_buff.buff );
|
||||||
if( is_ca_mode )
|
if( is_ca_mode )
|
||||||
writembs(exit_ca_mode);
|
writembs(exit_ca_mode);
|
||||||
|
}
|
||||||
|
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue