Revision: 7368
Author:   deton.kih
Date:     Sat Nov 12 17:57:00 2011
Log:      * scm/tutcode.scm
  - (tutcode-proc-state-on):
    Fix bug that extending text selection by <Shift>left/right key
    does not work because empty string committed by the key
    replaces current selection.

http://code.google.com/p/uim/source/detail?r=7368

Modified:
 /trunk/scm/tutcode.scm

=======================================
--- /trunk/scm/tutcode.scm      Sat Nov 12 04:53:02 2011
+++ /trunk/scm/tutcode.scm      Sat Nov 12 17:57:00 2011
@@ -2786,7 +2786,8 @@
       (eq? (tutcode-context-predicting pc) 'tutcode-predicting-completion))
      (rk-commit-flush
       (lambda ()
-        (if tutcode-keep-illegal-sequence?
+        (if (and tutcode-keep-illegal-sequence?
+                 (pair? (rk-context-seq rkc)))
           (tutcode-commit pc (rk-pending rkc) #f #t))
         (rk-flush rkc)))
      ;; Êä´°¸õÊäɽ¼¨¤Î¥Ú¡¼¥¸°Üư»þ¤Ï¡¢reset-candidate-window¤·¤¿¤éÂÌÌÜ

Reply via email to