* If a line began with a tabulator and another tabulator was inserted with

the cursor located on the first tabulator, the display was not updated
  appropriately since the last revision (Bugreport by Matthew Fischer). (P)
This commit is contained in:
Gunnar Ritter 2005-01-22 22:45:29 +00:00
parent 0e1e0f0cb5
commit 8cfde7de61
3 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,11 @@
Release ...
* If a line began with a tabulator and another tabulator was inserted with
the cursor located on the first tabulator, the display was not updated
appropriately since the last revision (Bugreport by Matthew Fischer). (P)
* Fixed a segmentation fault that occured in multibyte locales when operation
was continued after vi had been stopped by ^Z, with the cursor positioned
in a line longer than the terminal width as the last line of the current
screen.
* In a multibyte locale, when operation was continued after vi had been
stopped by ^Z with the cursor positioned at the last line of the screen
* Made it work for Big5 locales (Patches by Matthew Fischer).
* Fixed a problem with the 'r' command in EUC-JP and Big5 locales (Bugreport
by Matthew Fischer).

View File

@ -70,7 +70,7 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sccsid @(#)ex_version.c 1.119 (gritter) 1/22/05
* Sccsid @(#)ex_version.c 1.120 (gritter) 1/22/05
*/
#include "ex.h"

View File

@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_vput.c 1.44 (gritter) 1/22/05";
static char sccsid[] = "@(#)ex_vput.c 1.45 (gritter) 1/22/05";
#endif
#endif
@ -1055,7 +1055,7 @@ viin(int c)
if (remdoom > insmc1) {
remdoom--;
endim();
} else if (noim || remdoom == insmc1)
} else if (noim || insmc1 && remdoom == insmc1)
endim();
else if (IM && EI) {
vcsync();
@ -1064,7 +1064,7 @@ viin(int c)
vputchar(c);
}
if (!IM || !EI || remdoom == insmc1) {
if (!IM || !EI || remdoom && remdoom == insmc1) {
/*
* We are a dumb terminal; brute force update
* the rest of the line; this is very much an n^^2 process,