Commit 4745b2b
committed
fix(gfx): honour newlines that land at column 0
basic-gfx swallowed a CR/LF reaching col 0 (guard if(gfx_x!=0)), so
leading \n, \n\n, and bare-PRINT spacing produced no blank line, unlike
the terminal interpreter and the transpiler C runtime which honour every
newline. Same .bas spaced differently under gfx vs PET/native-C.
Add gfx_just_wrapped: set only when an eager 40-col wrap left the cursor
at col 0 with no glyph since; cleared by glyph/newline/HOME/CLS. CR/LF
now advances unless that flag is set, so a full-line wrap still absorbs
its trailing newline while every other col-0 newline advances. gfx now
matches terminal + compiled targets. 40-col eager wrap unchanged.1 parent d7ed006 commit 4745b2b
2 files changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
3 | 29 | | |
4 | 30 | | |
5 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2772 | 2772 | | |
2773 | 2773 | | |
2774 | 2774 | | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
2775 | 2781 | | |
2776 | 2782 | | |
2777 | 2783 | | |
| |||
2851 | 2857 | | |
2852 | 2858 | | |
2853 | 2859 | | |
| 2860 | + | |
2854 | 2861 | | |
2855 | 2862 | | |
2856 | 2863 | | |
| |||
2905 | 2912 | | |
2906 | 2913 | | |
2907 | 2914 | | |
| 2915 | + | |
2908 | 2916 | | |
2909 | 2917 | | |
2910 | 2918 | | |
| |||
2928 | 2936 | | |
2929 | 2937 | | |
2930 | 2938 | | |
2931 | | - | |
2932 | | - | |
2933 | | - | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
2934 | 2945 | | |
2935 | 2946 | | |
2936 | 2947 | | |
2937 | 2948 | | |
2938 | 2949 | | |
| 2950 | + | |
2939 | 2951 | | |
2940 | 2952 | | |
2941 | 2953 | | |
| |||
3183 | 3195 | | |
3184 | 3196 | | |
3185 | 3197 | | |
3186 | | - | |
| 3198 | + | |
| 3199 | + | |
3187 | 3200 | | |
3188 | 3201 | | |
| 3202 | + | |
3189 | 3203 | | |
3190 | 3204 | | |
3191 | 3205 | | |
| |||
0 commit comments