mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Fix for inability to go backwards through history
This commit is contained in:
@@ -53,7 +53,10 @@
|
||||
|
||||
int parse_util_lineno( const wchar_t *str, size_t offset )
|
||||
{
|
||||
int res = 0;
|
||||
if (! str)
|
||||
return 0;
|
||||
|
||||
int res = 1;
|
||||
for( size_t i=0; str[i] && i<offset; i++ )
|
||||
{
|
||||
if( str[i] == L'\n' )
|
||||
|
||||
Reference in New Issue
Block a user