tacme: fix arrow near end of text - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3
 (DIR) parent e067d2ea1f229658b91f6c5bf740a42ddec9da75
 (HTM) Author: Sean McKean <smckean83@gmail.com>
       Date:   Thu, 17 Nov 2011 14:46:14 -0500
       
       acme: fix arrow near end of text
       
       R=rsc
       CC=plan9port.codebot
       http://codereview.appspot.com/5399050
       
       Diffstat:
         M CONTRIBUTORS                        |       1 +
         M src/cmd/acme/text.c                 |      10 ++++------
       
       2 files changed, 5 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/CONTRIBUTORS b/CONTRIBUTORS
       t@@ -30,6 +30,7 @@ Peter Saveliev <svinota.saveliev@gmail.com>
        Richard Miller <millerresearch@gmail.com>
        Rob Pike <robpike@gmail.com>
        Russ Cox <rsc@swtch.com>
       +Sean McKean <smckean83@gmail.com>
        Tim Newsham <tim.newsham@gmail.com>
        Tony Lainson <t.lainson@gmail.com>
        Venkatesh Srinivas <extrudedaluminiu@gmail.com>
 (DIR) diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
       t@@ -671,16 +671,14 @@ texttype(Text *t, Rune r)
                rp = &r;
                switch(r){
                case Kleft:
       -                if(t->q0 > 0){
       -                        typecommit(t);
       +                typecommit(t);
       +                if(t->q0 > 0)
                                textshow(t, t->q0-1, t->q0-1, TRUE);
       -                }
                        return;
                case Kright:
       -                if(t->q1 < t->file->b.nc){
       -                        typecommit(t);
       +                typecommit(t);
       +                if(t->q1 < t->file->b.nc)
                                textshow(t, t->q1+1, t->q1+1, TRUE);
       -                }
                        return;
                case Kdown:
                        if(t->what == Tag)