diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-25 00:45:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-25 00:45:56 -0700 |
commit | b24b0144e33347a3947008c6b78852feb2478f81 (patch) | |
tree | 4ccf4e9cf3f03fdcefc62affb09709afb7f280f1 | |
parent | fae8242eb944919e197f10c026fca18e4728a690 (diff) | |
download | mu-b24b0144e33347a3947008c6b78852feb2478f81.tar.gz |
1652
-rw-r--r-- | edit.mu | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/edit.mu b/edit.mu index e86e6404..3caacff2 100644 --- a/edit.mu +++ b/edit.mu @@ -517,6 +517,26 @@ d] ] ] +scenario editor-moves-cursor-to-next-line-with-right-arrow-at-end-of-line [ + assume-screen 10:literal/width, 5:literal/height + assume-console [ + left-click 0, 3 + press 65514 # right arrow - next line + type [0] + ] + run [ + 1:address:array:character <- new [abc +d] + 2:address:editor-data <- new-editor 1:address:array:character, screen:address, 0:literal/top, 0:literal/left, 5:literal/right + event-loop screen:address, console:address, 2:address:editor-data + ] + screen-should-contain [ + .abc . + .0d . + . . + ] +] + ## helpers for drawing editor borders recipe draw-box [ |