svn commit: r258506 - user/ed/newcons/sys/dev/vt

Aleksandr Rybalko ray at FreeBSD.org
Sun Nov 24 00:15:58 UTC 2013


Author: ray
Date: Sun Nov 24 00:15:57 2013
New Revision: 258506
URL: http://svnweb.freebsd.org/changeset/base/258506

Log:
  Swap HOME/END for ScrollLocked mode. This fix confusion when End key move
  history to begin point.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  user/ed/newcons/sys/dev/vt/vt_core.c

Modified: user/ed/newcons/sys/dev/vt/vt_core.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/vt_core.c	Sat Nov 23 23:54:38 2013	(r258505)
+++ user/ed/newcons/sys/dev/vt/vt_core.c	Sun Nov 24 00:15:57 2013	(r258506)
@@ -359,7 +359,7 @@ vt_scrollmode_kbdevent(struct vt_window 
 		break;
 	}
 	case FKEY | F(49): /* Home key. */
-		vt_scroll(vw, 0, VHS_END);
+		vt_scroll(vw, 0, VHS_SET);
 		break;
 	case FKEY | F(50): /* Arrow up. */
 		vt_scroll(vw, -1, VHS_CUR);
@@ -369,7 +369,7 @@ vt_scrollmode_kbdevent(struct vt_window 
 		vt_scroll(vw, -size.tp_row, VHS_CUR);
 		break;
 	case FKEY | F(57): /* End key. */
-		vt_scroll(vw, 0, VHS_SET);
+		vt_scroll(vw, 0, VHS_END);
 		break;
 	case FKEY | F(58): /* Arrow down. */
 		vt_scroll(vw, 1, VHS_CUR);


More information about the svn-src-user mailing list