Revert "Merge pull request #1317 from pullreq/cpp"

This reverts commit 74135c0600, reversing
changes made to 6d749789ce.

See discussion in #1317
This commit is contained in:
ridiculousfish
2014-02-28 02:15:24 -08:00
parent 858b6aa257
commit be33d3f2a4
60 changed files with 95 additions and 103 deletions

View File

@@ -1,4 +1,4 @@
/** \file common.cpp
/** \file common.c
Various functions, mostly string utilities, that are used by most
parts of fish.
@@ -866,7 +866,11 @@ void write_screen(const wcstring &msg, wcstring &buff)
/*
If token is zero character long, we don't do anything
*/
if (overflow)
if (pos == start)
{
start = pos = pos+1;
}
else if (overflow)
{
/*
In case of overflow, we print a newline, except if we already are at position 0