Skip to content

Instantly share code, notes, and snippets.

View h-east's full-sized avatar

h_east h-east

  • Osaka, Japan
  • 23:00 (UTC +09:00)
View GitHub Profile
@h-east
h-east / fselect.patch
Last active August 29, 2015 14:22
find select ex command (WIP. 100% implement done)
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -564,6 +564,9 @@
EX(CMD_for, "for", ex_while,
EXTRA|NOTRLCOM|SBOXOK|CMDWIN,
ADDR_LINES),
+EX(CMD_fselect, "fselect", ex_fselect,
+ BANG|WORD1|EDITCMD|ARGOPT|TRLBAR,
+ ADDR_LINES),
@h-east
h-east / eval.jax
Created June 27, 2015 01:41
最新に追従途中。3536行までは完了。3537~が未
*eval.txt* For Vim バージョン 7.4. Last change: 2015 Jun 26
VIMリファレンスマニュアル by Bram Moolenaar
Vimスクリプト *expression* *expr* *E15* *eval*
Vimスクリプトの利用についてはユーザーマニュアルの41章|usr_41.txt|でも解説され
ている。
@h-east
h-east / rbg_fixed.patch
Last active August 29, 2015 14:24
for Vim 7.4.757 (7.4.761, 7.4.762) later. The OSC can be terminated at the BEL(007) or ST(0x9c).
diff -r 99fc18dc1ede src/term.c
--- a/src/term.c Sun Jun 28 19:24:40 2015 +0200
+++ b/src/term.c Thu Jul 02 12:47:40 2015 +0900
@@ -4264,7 +4264,9 @@
*
* - Background color response:
* <Esc>]11;rgb:{rrrr}/{gggg}/{bbbb}\007
- * The final byte must be '\007'.
+ * Or
+ * <Esc>]11;rgb:{rrrr}/{gggg}/{bbbb}ST
diff --git a/src/main.c b/src/main.c
--- a/src/main.c
+++ b/src/main.c
@@ -841,7 +841,6 @@
# if defined(FEAT_MBYTE)
may_req_ambiguous_char_width();
# endif
- may_req_bg_color();
#endif
diff --git a/src/diff.c b/src/diff.c
--- a/src/diff.c
+++ b/src/diff.c
@@ -804,7 +804,7 @@
for (idx_new = idx_orig + 1; idx_new < DB_COUNT; ++idx_new)
{
buf = curtab->tp_diffbuf[idx_new];
- if (buf == NULL)
+ if (buf == NULL || buf->b_ml.ml_mfp == NULL)
continue;
@h-east
h-east / tabpage_drag_to_right_fix.patch
Last active September 3, 2015 01:11
regression from Vim patch 7.4.709
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -2561,7 +2561,8 @@
if (in_tab_line)
{
c1 = TabPageIdxs[mouse_col];
- tabpage_move(c1 <= 0 ? 9999 : c1 - 1);
+ tabpage_move(c1 <= 0 ? 9999 : c1 < tabpage_index(curtab)
+ ? c1 - 1 : c1);
diff -r 917ffa98aeeb src/eval.c
--- a/src/eval.c Wed Sep 09 22:45:04 2015 +0200
+++ b/src/eval.c Fri Sep 11 16:17:55 2015 +0900
@@ -12446,6 +12446,9 @@
* otherwise the window is not valid. */
if (switch_win(&oldcurwin, &oldtabpage, win, tp, TRUE) == OK)
{
+#ifdef FEAT_AUTOCMD
+ unblock_autocmds();
+#endif
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -12426,6 +12426,7 @@
tabpage_T *tp = NULL;
tabpage_T *oldtabpage;
int done = FALSE;
+ int is_switch;
#ifdef FEAT_WINDOWS
@h-east
h-east / general.h
Created September 29, 2011 10:06
a part of general.h of exuberant ctags from http://ctags.sourceforge.net/ (GPL code)
#undef FALSE
#undef TRUE
#ifdef VAXC
typedef enum { FALSE, TRUE } booleanType;
typedef int boolean;
#else
# ifdef __cplusplus
typedef bool boolean;
#define FALSE false
#define TRUE true
@h-east
h-east / foo.txt
Created October 1, 2011 15:00
vim-jp/issue#2 test
#
#
あいうえお