Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add ansiesc patch to patches/, rebuild #106
Put guiniol's patch in patches/ for the record and rebuild vimpager with
the updated ansiesc.
  • Loading branch information
rkitover committed Apr 9, 2015
1 parent 66ea69f commit d944149
Show file tree
Hide file tree
Showing 2 changed files with 1,710 additions and 1,678 deletions.
24 changes: 24 additions & 0 deletions patches/ansiesc-add-support-for-x1b-1-39m-bold.patch
@@ -0,0 +1,24 @@
From ef6b2d14600e72fee2ba5861230804788892ab05 Mon Sep 17 00:00:00 2001
From: Guillaume Brogi <gui-gui@netcourrier.com>
Date: Wed, 8 Apr 2015 14:22:54 +0200
Subject: [PATCH] Add support for '\x1b[1;39m' (bold)

---
ansiesc/autoload/AnsiEsc.vim | 1 +
1 file changed, 1 insertion(+)

diff --git a/ansiesc/autoload/AnsiEsc.vim b/ansiesc/autoload/AnsiEsc.vim
index d41bd4e..da2acd5 100644
--- a/ansiesc/autoload/AnsiEsc.vim
+++ b/ansiesc/autoload/AnsiEsc.vim
@@ -126,6 +126,7 @@ fun! AnsiEsc#AnsiEsc(rebuild)
syn region ansiWhite start="\e\[;\=0\{0,2};\=37m" end="\e\["me=e-2 contains=ansiConceal
" set default ansi to white
syn region ansiWhite start="\e\[;\=0\{0,2};\=39m" end="\e\["me=e-2 contains=ansiConceal
+ syn region ansiBold start="\e\[;\=0\{0,1}1;\=39m" end="\e\["me=e-2 contains=ansiConceal

syn region ansiBold start="\e\[;\=0\{0,2};\=1m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiBoldBlack start="\e\[;\=0\{0,2};\=\%(1;30\|30;1\)m" end="\e\["me=e-2 contains=ansiConceal
--
2.3.0

0 comments on commit d944149

Please sign in to comment.