Skip to content

Instantly share code, notes, and snippets.

@xinhaoyuan
xinhaoyuan / mintty-2.7.0-even-line-highlight.patch
Last active November 22, 2016 16:27
Highlighting the background of even lines when control + alt is pressed. Handy for aligning lines.
diff -ru mintty-2.7.0/src/term.h mintty-2.7.0-modified/src/term.h
--- mintty-2.7.0/src/term.h 2016-11-11 08:27:15.000000000 -0500
+++ mintty-2.7.0-modified/src/term.h 2016-11-22 00:01:05.582947600 -0500
@@ -462,6 +462,9 @@
termresults results;
termimgs imgs;
+
+ bool even_line_highlight_mode;
+ bool even_line_highlight_toggle;
// ==UserScript==
// @name RefreshPdf
// @namespace [email protected]
// @description Refresh pdf in current view
// @include *.pdf*
// @version 1
// @grant none
// ==/UserScript==
(function () {
document.addEventListener('keydown', function (e) {