/ansi.c.diff Secret
Last active
December 16, 2015 20:49
-
-
Save superbrothers/908aedf677eb512e9ea1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/ansi.c 2013-05-01 20:23:53.000000000 +0900 | |
+++ src/ansi.c 2013-05-01 20:24:17.000000000 +0900 | |
@@ -2927,7 +2927,7 @@ | |
# endif | |
#endif | |
#ifdef UTF8 | |
- if (p->encoding == UTF8) | |
+ if (p->w_encoding == UTF8) | |
{ | |
if (ml->font != null && bcmp((char*)ml->font, null, p->w_width)) | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class ScreenVerticalSplit < Formula | |
homepage 'http://www.gnu.org/software/screen/' | |
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
mirror 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
md5 '8506fd205028a96c741e4037de6e3c42' | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' | |
if ARGV.build_head? | |
depends_on 'autoconf' | |
depends_on 'libtool' | |
depends_on 'automake' | |
end | |
def patches | |
{ :p0 => 'https://gist.github.com/superbrothers/908aedf677eb512e9ea1/raw/01e53dbadd7f667a41c8075a4db6e59e4d069ac3/ansi.c.diff' } | |
end | |
def install | |
if ARGV.build_head? | |
Dir.chdir('src') | |
system "./autogen.sh" | |
end | |
system "./configure", "--enable-colors256", | |
"--prefix=#{prefix}", | |
"--mandir=#{man}", | |
"--infodir=#{info}" | |
if ARGV.build_head? | |
system 'bash osdef.sh' | |
end | |
system "make" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment