Commit 443e2eb
committed
If astwinsize cannot obtain the terminal window size, then it is`
better not to set the LINES and COLUMNS variables at all, instead
of setting default values.
However, do guarantee that the internal sh.rows and sh.columns
variables always have usable values, falling back to 24x80 if we
have no alternative.
1 parent f15e2c4 commit 443e2eb
3 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | | - | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
2432 | | - | |
2433 | 2432 | | |
2434 | 2433 | | |
2435 | 2434 | | |
| |||
2440 | 2439 | | |
2441 | 2440 | | |
2442 | 2441 | | |
2443 | | - | |
| 2442 | + | |
2444 | 2443 | | |
2445 | 2444 | | |
2446 | 2445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
319 | 323 | | |
320 | 324 | | |
321 | 325 | | |
| |||
0 commit comments