Fix classic compatibility. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 8223720a67dc432e527819b299f9cc7a6f9bb81f
 (DIR) parent 537a0316dadf4ec577516e2676462a8b9cd7a807
 (HTM) Author: Rob King <jking@deadpixi.com>
       Date:   Thu,  1 Sep 2016 22:43:30 -0500
       
       Fix classic compatibility.
       
       Diffstat:
         sam/mesg.c                          |       7 ++++---
         samterm/mesg.c                      |      11 +++++++----
       
       2 files changed, 11 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/sam/mesg.c b/sam/mesg.c
       @@ -259,11 +259,12 @@ inmesg(Tmesg type)
                        s = inshort(); /* tag */
                        l = inlong(); /* position */
                        l1 = inlong(); /* lines to seek past position */
       -                journaln(0, l1);
       +        journaln(0, l1);
                if (!oldcompat){
                    l2 = inlong(); /* cookie to return (identifies layer) */
       -                    journaln(0, l2);
       -        }
       +            journaln(0, l2);
       +        } else
       +            l2 = 0;
                        lookorigin(whichfile(s), l, l1, l2);
                        break;
        
 (DIR) diff --git a/samterm/mesg.c b/samterm/mesg.c
       @@ -216,11 +216,14 @@ inmesg(Hmesg type, int count)
                        break;
        
                case Horigin:
       -        l2 = inlong(6);
                        if(whichmenu(m) >= 0){
       -            Text *t = whichtext(m);
       -            Flayer *rl = &t->l[l2];
       -                        horigin(m, l, rl);
       +            if (oldcompat)
       +                horigin(m, l, NULL);
       +            else{
       +                Text *t = whichtext(m);
       +                l2 = inlong(6);
       +                            horigin(m, l, &t->l[l2]);
       +            }
                }
                        break;