summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-04-06 09:22:13 +0000
committerAli Polatel <hawking@gentoo.org>2008-04-06 09:22:13 +0000
commit2adc5f3075694fba738ad4b077ecd23d1eb7f216 (patch)
treecd8b2f62b36881f4447c91aaadde4ae78515fde1 /eclass
parentMask app-laptop/omnibook-svn (diff)
downloadhistorical-2adc5f3075694fba738ad4b077ecd23d1eb7f216.tar.gz
historical-2adc5f3075694fba738ad4b077ecd23d1eb7f216.tar.bz2
historical-2adc5f3075694fba738ad4b077ecd23d1eb7f216.zip
Strip colour codes before piping to vim for vimmanpager, bug 212844, thanks to Guillaume Castagnino
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index 72df7a12a162..2d750ffc0c7e 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.170 2008/03/03 15:09:18 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.171 2008/04/06 09:22:13 hawking Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -302,6 +302,7 @@ vim_src_unpack() {
&& use vim-pager ; then
cat <<END > ${S}/runtime/macros/manpager.sh
#!/bin/sh
+sed -e 's/\x1B\[[[:digit:]]\+m//g' | \\
tr '\\267' '.' | col -b | \\
vim \\
-c 'let no_plugin_maps = 1' \\