137 |
|
VIEW nv; |
138 |
|
|
139 |
|
if (sscanf(s, "%s", buf) == 1) { /* get parameters from a file */ |
140 |
< |
copyview(&nv, &stdview); |
140 |
> |
copystruct(&nv, &stdview); |
141 |
|
if ((fname = getpath(buf, NULL, 0)) == NULL || |
142 |
< |
(success = viewfile(fname, &nv)) == -1) { |
142 |
> |
(success = viewfile(fname, &nv, 0, 0)) == -1) { |
143 |
|
sprintf(errmsg, "cannot open \"%s\"", buf); |
144 |
|
error(COMMAND, errmsg); |
145 |
|
return; |
154 |
|
error(COMMAND, "no previous view"); |
155 |
|
return; |
156 |
|
} |
157 |
< |
copyview(&nv, &ourview); |
158 |
< |
copyview(&ourview, &oldview); |
159 |
< |
copyview(&oldview, &nv); |
157 |
> |
copystruct(&nv, &ourview); |
158 |
> |
copystruct(&ourview, &oldview); |
159 |
> |
copystruct(&oldview, &nv); |
160 |
|
newimage(); |
161 |
|
} |
162 |
|
|