From 98ddb540f9c3bb9cef324e0accb1560a6f8108ef Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 16 Aug 2006 21:12:43 +0000
Subject: [PATCH] Add PgDn, HOME, END support to quoter.

---
 exec/fseditor.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/exec/fseditor.js b/exec/fseditor.js
index 8e10b65dc9..8d69a76918 100644
--- a/exec/fseditor.js
+++ b/exec/fseditor.js
@@ -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;
 		}
 	}
 }
-- 
GitLab