mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-13 21:29:31 +00:00
wrapping bug
This commit is contained in:
parent
d1afecbfa0
commit
30c44770d3
|
@ -141,7 +141,7 @@ public class ApplesoftBasicProgram extends BasicProgram implements ApplesoftCons
|
||||||
{
|
{
|
||||||
System.out.printf ("%s: ptr: %04X, nextLine: %04X%n", name, ptr + loadAddress,
|
System.out.printf ("%s: ptr: %04X, nextLine: %04X%n", name, ptr + loadAddress,
|
||||||
linkField);
|
linkField);
|
||||||
// ptr = linkField - loadAddress; // use this one day
|
// ptr = linkField - loadAddress; // use this when tested
|
||||||
}
|
}
|
||||||
|
|
||||||
currentLine.append (NEWLINE);
|
currentLine.append (NEWLINE);
|
||||||
|
@ -208,11 +208,11 @@ public class ApplesoftBasicProgram extends BasicProgram implements ApplesoftCons
|
||||||
{
|
{
|
||||||
case Utility.ASCII_CR:
|
case Utility.ASCII_CR:
|
||||||
currentLine.append (NEWLINE);
|
currentLine.append (NEWLINE);
|
||||||
cursor = lineWrapLeft;
|
cursor = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Utility.ASCII_BACKSPACE:
|
case Utility.ASCII_BACKSPACE:
|
||||||
if (currentLine.length () > 0)
|
if (cursor > 0)
|
||||||
{
|
{
|
||||||
currentLine.deleteCharAt (currentLine.length () - 1);
|
currentLine.deleteCharAt (currentLine.length () - 1);
|
||||||
--cursor;
|
--cursor;
|
||||||
|
@ -220,9 +220,8 @@ public class ApplesoftBasicProgram extends BasicProgram implements ApplesoftCons
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Utility.ASCII_LF:
|
case Utility.ASCII_LF:
|
||||||
int indent = getIndent (currentLine);
|
|
||||||
currentLine.append ("\n");
|
currentLine.append ("\n");
|
||||||
for (int i = 0; i < indent; i++)
|
for (int i = 0; i < cursor; i++)
|
||||||
currentLine.append (" ");
|
currentLine.append (" ");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user