terminology: apparently insert doesn't move the cursor.

NOTE: please test it and report issue, but apparently this
fix emacs and bash for me.


SVN revision: 72717
This commit is contained in:
Cedric BAIL 2012-06-23 08:32:48 +00:00
parent 86b43ae0f4
commit e2c25bc45b
1 changed files with 2 additions and 0 deletions

View File

@ -658,12 +658,14 @@ _handle_esc_csi(Termpty *ty, const int *c, int *ce)
{
int pi = ty->state.insert;
int blank[1] = { ' ' };
int cx = ty->state.cx;
ty->state.wrapnext = 0;
ty->state.insert = 1;
for (i = 0; i < arg; i++)
_text_append(ty, blank, 1);
ty->state.insert = pi;
ty->state.cx = cx;
}
break;
case 'A': // cursor up N