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
commit182423d60f9f189868df4365ce429ffd110eb2f8 (patch)
tree6f44b4b373ae0a69f9dfbf096e2e25857a060a47 /eclass
parentMask app-laptop/omnibook-svn (diff)
downloadgentoo-2-182423d60f9f189868df4365ce429ffd110eb2f8.tar.gz
gentoo-2-182423d60f9f189868df4365ce429ffd110eb2f8.tar.bz2
gentoo-2-182423d60f9f189868df4365ce429ffd110eb2f8.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' \\