Skip to content

Commit 47c8474

Browse files
committed
Merge branch 'master' of https://github.com/mintty/mintty
2 parents 5b87b5f + 6200642 commit 47c8474

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/termout.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,6 @@ static void
801801
curs->wrapnext = false;
802802
}
803803

804-
if (term.insert && width > 0)
805-
insert_char(width);
806-
807804
bool single_width = false;
808805
if (cfg.charwidth >= 10 || cs_single_forced) {
809806
if (width > 1) {
@@ -815,6 +812,9 @@ static void
815812
}
816813
}
817814

815+
if (term.insert && width > 0)
816+
insert_char(width);
817+
818818
switch (width) {
819819
when 1: // Normal character.
820820
term_check_boundary(curs->x, curs->y);
@@ -2401,6 +2401,9 @@ static void
24012401
else
24022402
child_printf("\e[>77;%u;0c", DECIMAL_VERSION);
24032403
}
2404+
when CPAIR('>', 'q'): /* Report terminal name and version */
2405+
if (!arg0)
2406+
child_printf("\eP>|%s %s\e\\", APPNAME, VERSION);
24042407
when 'a': /* HPR: move right N cols */
24052408
move(curs->x + arg0_def1, curs->y, 1);
24062409
when 'C': /* CUF: Cursor right */

0 commit comments

Comments
 (0)