Scroll command window to bottom on ctrl-k. - 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 03cb67e61d14c9e68b8308230b585068587a164e
 (DIR) parent 4b6e1852d12a306e2fab4f2efa41ab70dfd60afc
 (HTM) Author: Rob King <jking@deadpixi.com>
       Date:   Mon,  2 May 2016 11:45:55 -0500
       
       Scroll command window to bottom on ctrl-k.
       
       Diffstat:
         samterm/main.c                      |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/samterm/main.c b/samterm/main.c
       @@ -672,10 +672,12 @@ type(Flayer *l, int res)        /* what a bloody mess this is */
                                if (flast)
                                        current(flast);
                        }else{
       +                        l = &cmd.l[0];
       +                        Text *t = (Text *)l->user1;
                                flast = which;
       -                        current(&cmd.l[0]);
       +                        current(l);
                                flushtyping(0);
       -                        flsetselect(&cmd.l[0], a, a);
       +                        flsetselect(l, t->rasp.nrunes, t->rasp.nrunes);
                                center(l, a);
                        }
                }else{