[uim-commit] r1346 - trunk/fep

yamamoto at freedesktop.org yamamoto at freedesktop.org
Mon Aug 29 02:10:24 EST 2005


Author: yamamoto
Date: 2005-08-28 09:10:22 -0700 (Sun, 28 Aug 2005)
New Revision: 1346

Modified:
   trunk/fep/escseq.c
Log:
* fep/escseq.c (get_cursor_position) : bug fix. Second escape
  charactor is not treated.


Modified: trunk/fep/escseq.c
===================================================================
--- trunk/fep/escseq.c	2005-08-28 15:38:13 UTC (rev 1345)
+++ trunk/fep/escseq.c	2005-08-28 16:10:22 UTC (rev 1346)
@@ -504,10 +504,11 @@
   }
 }
 
-#define range_check(i) do { \
-  if ((i) > escseq_len - 1) { \
-    goto retry; \
-  } \
+#define range_check(i)                   \
+do {                                     \
+  if ((i) > escseq_len - 1) {            \
+    goto retry;                          \
+  }                                      \
 } while(FALSE)
 
 /*
@@ -571,7 +572,7 @@
       if (escseq[i] != '[') {
         unget_buf[unget_count++] = escseq[i++];
         if (escseq[i] != '[') {
-          break; /* goto retry */
+          continue;
         }
       }
       
@@ -600,11 +601,11 @@
       }
 
       if (row == UNDEFINED) {
-        break; /* goto retry */
+        continue;
       }
 
       if (escseq[i] != ';') {
-        break; /* goto retry */
+        continue;
       }
 
       range_check(i + 1);
@@ -633,11 +634,11 @@
       }
 
       if (col == UNDEFINED) {
-        break; /* goto retry */
+        continue;
       }
 
       if (escseq[i] != 'R') {
-        break; /* goto retry */
+        continue;
       }
 
       /* ¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤ÎÁ°¤Ëʸ»úÎ󤬤¢¤ë¤« */



More information about the uim-commit mailing list