mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
Revert "Merge pull request #1317 from pullreq/cpp"
This reverts commit74135c0600, reversing changes made to6d749789ce. See discussion in #1317
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user