diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-15 13:52:51 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-15 14:07:23 -0800 |
commit | 4637d58f6c4777f9643f73de859af23c38acca2c (patch) | |
tree | aed44d16e0ae6a7961351d964189e3cbca4d8706 /sandbox | |
parent | f592d8629f3fddaebff4abece8f92e57e9379418 (diff) | |
download | mu-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 'sandbox')
-rw-r--r-- | sandbox/003-shortcuts.mu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandbox/003-shortcuts.mu b/sandbox/003-shortcuts.mu index 12de1f70..f6c762a6 100644 --- a/sandbox/003-shortcuts.mu +++ b/sandbox/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) |