Skip to content
Snippets Groups Projects
Commit 98ddb540 authored by deuce's avatar deuce
Browse files

Add PgDn, HOME, END support to quoter.

parent ef73a69d
No related branches found
No related tags found
No related merge requests found
......@@ -1147,6 +1147,18 @@ function quote_mode()
case '\x12': /* CTRL-R (Quick Redraw in SyncEdit) */
redraw_screen();
break;
case KEY_HOME:
quote_ypos=0;
quote_topline=0;
draw_quote_window();
break;
case KEY_END:
quote_ypos=quote_line.length-1;
quote_topline=quote_line.length-quote_height;
if(quote_topline<0)
quote_topline=0;
draw_quote_window();
break;
case KEY_DOWN:
quote_ypos++;
if(quote_ypos>=quote_line.length) {
......@@ -1240,6 +1252,15 @@ function quote_mode()
quote_topline=0;
draw_quote_window();
break;
case '\x1a': /* CTRL-Z (EOF) (PgUp in SyncEdit) */
quote_ypos-=quote_height-1;
quote_topline-=quote_height-1;
if(quote_ypos<0)
quote_ypos=0;
if(quote_topline<0)
quote_topline=0;
draw_quote_window();
break;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment