fish>  set -x TERM
# Kaboom -- constant crashes

This patch fixes:

codemon...@daves-mbp ~/W/fish> git diff
diff --git a/src/reader.c b/src/reader.c
index d0da730..522b702 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -624,7 +624,7 @@ void reader_write_title()
          don't. Since we can't see the underlying terminal below screen
          there is no way to fix this.
        */
-       if( !term || !contains( term, L"xterm", L"screen", L"nxterm",
L"rxvt" )
+       if( term && !contains( term, L"xterm", L"screen", L"nxterm", L"rxvt"
) )
        {
                char *n = ttyname( STDIN_FILENO );



Basically, if term is null, because of the or, it was still entering
contains, that asserted on term not being null.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to