1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-04-25 05:39:33 +03:00

Fix for Jira bug I7-1856

This commit is contained in:
Graham Nelson 2022-05-27 00:18:42 +01:00
parent 120d18ffc4
commit 0d4829e552
3 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Inform 7
v10.1.0-beta+6V14 'Krypton' (26 May 2022)
v10.1.0-beta+6V15 'Krypton' (27 May 2022)
## About Inform 7

View file

@ -1,3 +1,3 @@
Prerelease: beta
Build Date: 26 May 2022
Build Number: 6V14
Build Date: 27 May 2022
Build Number: 6V15

View file

@ -245,7 +245,7 @@ $$ C = 100 + N $$
for (i=from: i<=to: i++) print (char) i->0;
];
[ SpliceSnippet snip t i w1 w2 nextw at endsnippet newlen;
[ SpliceSnippet snip t i w1 w2 nextw at endsnippet newlen saved;
w1 = snip/100; w2 = w1 + (snip%100) - 1;
if ((w2<w1) || (w1<1)) {
if ((w1 == 1) && (w2 == 0)) return;
@ -255,6 +255,7 @@ $$ C = 100 + N $$
nextw = w2 + 1;
at = WordAddress(w1) - buffer;
if (nextw <= WordCount()) endsnippet = 100*nextw + (WordCount() - nextw + 1);
saved = buffer2-->0;
buffer2-->0 = 120;
newlen = VM_PrintToBuffer(buffer2, 120, SpliceSnippet__TextPrinter, t, endsnippet);
for (i=0: (i<newlen) && (at+i<120): i++) buffer->(at+i) = buffer2->(WORDSIZE+i);
@ -262,6 +263,7 @@ $$ C = 100 + N $$
for (:at+i<120:i++) buffer->(at+i) = ' ';
VM_Tokenise(buffer, parse);
players_command = 100 + WordCount();
buffer2-->0 = saved;
@pull say__pc; @pull say__p;
];