about summary refs log tree commit diff stats
path: root/edit
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-15 13:52:51 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-15 14:07:23 -0800
commit4637d58f6c4777f9643f73de859af23c38acca2c (patch)
treeaed44d16e0ae6a7961351d964189e3cbca4d8706 /edit
parentf592d8629f3fddaebff4abece8f92e57e9379418 (diff)
downloadmu-4637d58f6c4777f9643f73de859af23c38acca2c.tar.gz
2661 - warn if a reply doesn't match recipe header
Thanks Nicolas Léveillé for running up against this bug:
  https://news.ycombinator.com/item?id=11094837

(Also noticed and fixed several subsidiary issues. This whole aspect
doesn't seem fully baked yet.)
Diffstat (limited to 'edit')
-rw-r--r--edit/003-shortcuts.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit/003-shortcuts.mu b/edit/003-shortcuts.mu
index 12de1f70..f6c762a6 100644
--- a/edit/003-shortcuts.mu
+++ b/edit/003-shortcuts.mu
@@ -2310,9 +2310,10 @@ after <scroll-up> [
 # takes a pointer into the doubly-linked list, scans back to before start of
 # previous *wrapped* line
 # beware: never return null pointer
-recipe before-previous-line curr:address:shared:duplex-list:character, editor:address:shared:editor-data -> curr:address:shared:duplex-list:character [
+recipe before-previous-line in:address:shared:duplex-list:character, editor:address:shared:editor-data -> out:address:shared:duplex-list:character [
   local-scope
   load-ingredients
+  curr:address:shared:duplex-list:character <- copy in
   c:character <- get *curr, value:offset
   # compute max, number of characters to skip
   #   1 + len%(width-1)