Skip to content

Instantly share code, notes, and snippets.

@k-takata
k-takata / 0001-Import-PR-3474-by-ntak.patch
Last active October 29, 2018 03:32
Import the ConPTY patch for Vim at vim/vim#3474 by @ntak
From ae8f04efd02e0521c08b2abd9b32c3525a863121 Mon Sep 17 00:00:00 2001
From: "K.Takata" <[email protected]>
Date: Mon, 29 Oct 2018 12:08:17 +0900
Subject: [PATCH] Import PR#3474 by @ntak
---
src/channel.c | 39 +++-
src/evalfunc.c | 4 +
src/option.c | 7 +-
src/os_mswin.c | 2 +
@k-takata
k-takata / gist:014303bde8afe8cb1e5acbb26314ba31
Created December 13, 2018 14:16
Vim 8.0.0001 to 8.0.1850 patch contributor ranking
115 (Christian Brabandt)
94 (Dominique Pelle)
93 (Yasuhiro Matsumoto)
85 (Yegappan Lakshmanan)
81 (Ken Takata)
65 (Ozaki Kiichi)
48 (Hirohito Higashi)
46 (Kazunobu Kuriyama)
32 (James McCoy)
18 (John Marriott)
commit 5897d165fab11f2fde07afe62cbc996895882bc3
Author: K.Takata <[email protected]>
Date: Wed Feb 13 20:21:55 2019 +0900
Simplify fname_case()
diff --git a/src/os_win32.c b/src/os_win32.c
index 10ca41881..ca4a22839 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
# HG changeset patch
# Parent 8d0990dda8627ba9b7e2647b8f586deb0090f81e
diff --git a/src/os_win32.c b/src/os_win32.c
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1463,6 +1463,8 @@ handle_focus_event(INPUT_RECORD ir)
ui_focus_change((int)g_fJustGotFocus);
}
@k-takata
k-takata / buildvim.bat
Created March 13, 2019 04:16
Batch file for building (g)Vim using MSVC
@echo off
setlocal
:: Default I/F versions.
set LUA_VER=51
set PERL_VER=528
set PYTHON_VER=27
set PYTHON3_VER=37
set RUBY_VER=25
set RUBY_API_VER_LONG=2.5.0
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -1034,7 +1034,7 @@ DWriteContext::DrawText(const WCHAR *tex
TextRenderer renderer(this);
TextRendererContext context = { color, FLOAT(cellWidth), 0.0f };
- textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y) - 0.5f);
+ textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y));
}
From 40542b0f2055df62819ba25f8e1aee623a20fb5d Mon Sep 17 00:00:00 2001
From: "K.Takata" <[email protected]>
Date: Tue, 11 Jun 2019 19:22:56 +0900
Subject: [PATCH] MSVC: Update makefile for sound
---
src/Make_mvc.mak | 32 +++++++++++++++++++++++++-------
1 file changed, 25 insertions(+), 7 deletions(-)
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
From 35b9dc6481422ed93236d2c201ff7da122c8ae26 Mon Sep 17 00:00:00 2001
From: "K.Takata" <[email protected]>
Date: Thu, 13 Jun 2019 23:15:37 +0900
Subject: [PATCH] sound: Fix some issues
* Update document about sound_playevent() on Windows.
* Some lines exceeded 80 columns.
* Types of some variables were wrong.
---
runtime/doc/eval.txt | 11 ++++++++---
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1703,55 +1703,12 @@ mch_print_set_fg(long_u fgcol)
# include <shlobj.h>
# endif
-typedef enum _FILE_INFO_BY_HANDLE_CLASS_ {
- FileBasicInfo_,
- FileStandardInfo_,
- FileNameInfo_,
@k-takata
k-takata / ln-mingw.sh
Last active May 11, 2022 02:54
Reduce the install size of clang, llvm, lld and gcc on MSYS2
#!/bin/sh
# Convert the same files into hard links to reduce the install size of
# clang, llvm, lld and gcc on MSYS2.
ESC=$'\33'
GREEN="$ESC[32m"
YELLOW="$ESC[33m"
CYAN="$ESC[36m"
RESET="$ESC[m"