summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--im.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index f43864c..e86043c 100644
--- a/README
+++ b/README
@@ -88,6 +88,8 @@ ranger
pageup/pagedown does not work when the im is turned on
vim
If the im is turned on, it will start in vreplace mode
+TODO:
+ Smarter handling of escape code sequences to fix the above
------------------------------=[Acknowledgements]=------------------------------
I would like to thank jdh8 on github for creating the ibus-table format boshiamy
file I used to make boshiamy.h
diff --git a/im.h b/im.h
index f029fb1..3ded146 100644
--- a/im.h
+++ b/im.h
@@ -19,7 +19,7 @@
#define ESCAPE_KEY '`'
//Vertical Tab Ctrl+K
#define TOGGLE_KEY 0x0B
-#define IM_KEY_RANGE_LEN 7
+#define IM_KEY_RANGE_LEN 5
//Array of Input method key ranges(inclusive) seperate from the above
char im_key_ranges[IM_KEY_RANGE_LEN][2] = {
@@ -28,8 +28,6 @@ char im_key_ranges[IM_KEY_RANGE_LEN][2] = {
{' ',' '},
{',',','},
{'.','.'},
- {'[','['},
- {']',']'},
};
int is_im_key(char input) {
for (int i = 0; i < IM_KEY_RANGE_LEN; i++) {