diff --git a/exec/fseditor.js b/exec/fseditor.js index da7e0931c57af2309ca85c4de76845093ddc8891..8246932df51fa64a40b28c85f482d18eb9add894 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -1367,7 +1367,7 @@ function edit(quote_first) redraw_screen(); if(quote_first) { if(quote_mode()) { - console.gotoxy(1,1); + console.line_counter=0; return; } } @@ -1648,7 +1648,7 @@ function edit(quote_first) xpos=line[ypos].text.length; break; case '\x11': /* CTRL-Q (XOff) (Quick Abort in SyncEdit) */ - console.gotoxy(1,1); + console.line_counter=0; return; case '\x12': /* CTRL-R (Quick Redraw in SyncEdit) */ redraw_screen(); @@ -1667,7 +1667,7 @@ function edit(quote_first) case '\x15': /* CTRL-U (Quick Quote in SyncEdit) */ if(quote_line.length>0) { if(quote_mode()) { - console.gotoxy(1,1); + console.line_counter=0; return; } } @@ -1752,7 +1752,7 @@ function edit(quote_first) var s=make_strings(true,true); f.write(s[0]); f.close(); - console.gotoxy(1,1); + console.line_counter=0; return; case '\x1b': /* ESC (This should parse extra ANSI sequences) */ break; @@ -1772,7 +1772,7 @@ function edit(quote_first) try_prev_line(); break; case '\x1f': /* CTRL-_ Safe quick-abort*/ - console.gotoxy(1,1); + console.line_counter=0; return; case '\x7f': /* DELETE */ last_xpos=-1;