This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/ansi.c | |
+++ b/src/ansi.c | |
@@ -1506,8 +1506,24 @@ | |
{ | |
if (curr->w_stringp >= curr->w_string + MAXSTR - 1) | |
curr->w_state = LIT; | |
+# ifdef UTF8 | |
+ else if (c < 0x80) | |
+ *(curr->w_stringp)++ = c; | |
+ else if (c < 0x800) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/ansi.c | |
+++ b/src/ansi.c | |
@@ -728,6 +728,10 @@ | |
LPutChar(&curr->w_layer, &omc, ox, oy); | |
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y); | |
} | |
+ if (curr->w_mbcs) | |
+ { | |
+ curr->w_rend.mbcs = curr->w_mbcs = 0; | |
+ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<replacementdef> | |
<replacementname>VIM_EMU_IGNORE_APPS</replacementname> | |
<replacementvalue>TERMINAL, VI, CATHODE, PASSWORD, FIREFOX, EMACS, LOGMEIN, GOOGLE_CHROME</replacementvalue> | |
</replacementdef> | |
<!-- key mappings with vim_emu --> | |
<list> | |
<item> | |
<name>MySetting with vim_emu</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ansi.c b/src/ansi.c | |
index d88e153..fc42a0a 100644 | |
--- a/src/ansi.c | |
+++ b/src/ansi.c | |
@@ -1493,8 +1493,24 @@ int c; | |
{ | |
if (curr->w_stringp >= curr->w_string + MAXSTR - 1) | |
curr->w_state = LIT; | |
+# ifdef UTF8 | |
+ else if (c < 0x80) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
. sentaku -n | |
SENTAKU_FILE_CONTNT_LINE=10 | |
_sf_file_content () { | |
if [ $_s_file_content -eq 0 ];then | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
. sentaku -n | |
_sf_s () { | |
output="$(_sf_nth $((_s_current_n))) value: ${_s_inputs[$_s_current_n]} | |
=============== | |
" | |
if [ -f ${_s_inputs[$_s_current_n]} ];then | |
output="$output$(head -n $(($_s_lines-3)) ${_s_inputs[$_s_current_n]})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mygist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ansi.c b/src/ansi.c | |
index fa53775..4a21f84 100644 | |
--- a/src/ansi.c | |
+++ b/src/ansi.c | |
@@ -725,6 +725,10 @@ register int len; | |
LPutChar(&curr->w_layer, &omc, ox, oy); | |
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y); | |
} | |
+ if (curr->w_mbcs) | |
+ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
j & k:: ; Go to Normal mode (for vim) with IME off even at converting. | |
if (VIM_IME_GET(A)) { | |
Send,{Esc} | |
Sleep 1 | |
VIM_IME_SET() | |
} | |
VimSetMode("Vim_Normal") | |
Return |