static void cursorUp(void);
static void cursorRight(void);
static void cursorHome(void);
+static void cursorEnd(void);
/* Main Routine
*****************************************************************************/
case '0':
cursorHome();
break;
+
+ case KEY_END:
+ case '$':
+ cursorEnd();
+ break;
}
/* Cap the column selection at the end of text on the current line */
if (Loc.line->length <= 1)
}
}
+static void cursorEnd()
+{
+ if (Loc.line->length <= 1)
+ Curr.x = 0;
+ else
+ Curr.x = (Loc.line->length-2 - Loc.offset);
+ ScreenDirty = true;
+}
+