version 1.1, 1996/09/07 21:40:26 |
version 1.2, 1996/09/21 06:23:06 |
|
|
{ |
{ |
if (buflist_getfile(curwin->w_jumplist[curwin->w_jumplistidx].fnum, |
if (buflist_getfile(curwin->w_jumplist[curwin->w_jumplistidx].fnum, |
curwin->w_jumplist[curwin->w_jumplistidx].mark.lnum, |
curwin->w_jumplist[curwin->w_jumplistidx].mark.lnum, |
0) == FAIL) |
0, FALSE) == FAIL) |
return (FPOS *)NULL; |
return (FPOS *)NULL; |
curwin->w_cursor.col = |
curwin->w_cursor.col = |
curwin->w_jumplist[curwin->w_jumplistidx].mark.col; |
curwin->w_jumplist[curwin->w_jumplistidx].mark.col; |
|
|
if (namedfm[c].mark.lnum != 0 && changefile && namedfm[c].fnum) |
if (namedfm[c].mark.lnum != 0 && changefile && namedfm[c].fnum) |
{ |
{ |
if (buflist_getfile(namedfm[c].fnum, |
if (buflist_getfile(namedfm[c].fnum, |
namedfm[c].mark.lnum, GETF_SETMARK) == OK) |
namedfm[c].mark.lnum, GETF_SETMARK, FALSE) == OK) |
{ |
{ |
curwin->w_cursor.col = namedfm[c].mark.col; |
curwin->w_cursor.col = namedfm[c].mark.col; |
return (FPOS *)-1; |
return (FPOS *)-1; |
|
|
/* We only get here (hopefully) if line[0] == '\'' */ |
/* We only get here (hopefully) if line[0] == '\'' */ |
str = line + 1; |
str = line + 1; |
if (*str > 127 || (!isdigit(*str) && !isupper(*str))) |
if (*str > 127 || (!isdigit(*str) && !isupper(*str))) |
EMSG2("viminfo: Illegal file mark name in line %s", line); |
{ |
|
if (viminfo_error("Illegal file mark name", line)) |
|
return TRUE; /* Too many errors, pretend end-of-file */ |
|
} |
else |
else |
{ |
{ |
if (isdigit(*str)) |
if (isdigit(*str)) |
|
|
if (line[0] != '>') |
if (line[0] != '>') |
{ |
{ |
if (line[0] != '\n' && line[0] != '\r' && line[0] != '#') |
if (line[0] != '\n' && line[0] != '\r' && line[0] != '#') |
EMSG2("viminfo: Illegal starting char in line %s", line); |
{ |
|
if (viminfo_error("Missing '>'", line)) |
|
return; /* too many errors, return now */ |
|
} |
eof = vim_fgets(line, LSIZE, fp_in); |
eof = vim_fgets(line, LSIZE, fp_in); |
continue; /* Skip this dud line */ |
continue; /* Skip this dud line */ |
} |
} |