Article View: comp.sources.bugs
Article #192Patch for less v97
From: Chad R. Larson
Date: Tue, 26 Sep 1989 21:11
Date: Tue, 26 Sep 1989 21:11
33 lines
1412 bytes
1412 bytes
When less (version 97) is running with the "-c" option, it paints new
data from the top down, and clears each screen line immediately before
writing a new one. This gets confused when outputting lines wider than
the physical screen on terminals that do auto-margin line wrapping. The
continuation line can have left-over data from the previous screen
sticking out to the right margin. This patch fixes the problem.
NOTE: The old code made outputting a newline character at the end of an
output line conditional on the termcap entries for auto-margins and the
VT100 glitch check. I can't see the reason why and dropped it in my
patch. If I'm braindamaged and that was necessary, 'scuse me.
*** output.c.sav Wed Apr 19 17:52:18 1989
--- output.c Wed Apr 19 18:24:02 1989
***************
*** 95,102 ****
}
}
}
! if (column < sc_width || !auto_wrap || ignaw)
! putchr('\n');
}
/*
--- 95,103 ----
}
}
}
! if (column > sc_width && auto_wrap)
! clear_eol();
! putchr('\n');
}
/*
Technical Details
Message-ID:
<745@anasaz.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!asuvax!anasaz!chadShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!asuvax!anasaz!chad From: chad@anasaz.UUCP (Chad R. Larson) Newsgroups: comp.sources.bugs Subject: Patch for less v97 Keywords: less patch Message-ID: <745@anasaz.UUCP> Date: 26 Sep 89 21:11:56 GMT Reply-To: chad@anasaz.UUCP (Chad R. Larson) Organization: Anasazi Inc, Phoenix AZ Lines: 33