Fix a regression caused by rewrite of kittens to Go that made various kittens reset colors in a terminal when the colors were changed by escape code

Fixes #6708
This commit is contained in:
Kovid Goyal
2023-10-12 20:19:28 +05:30
parent 4d230f5035
commit 00dc5a8dc5
2 changed files with 4 additions and 2 deletions

View File

@@ -162,9 +162,9 @@ func (self *TerminalStateOptions) ResetStateEscapeCodes() string {
}
sb.WriteString(RESTORE_PRIVATE_MODE_VALUES)
if self.restore_colors {
sb.WriteString(RESTORE_CURSOR)
sb.WriteString(RESTORE_COLORS)
}
sb.WriteString(RESTORE_COLORS)
sb.WriteString(RESTORE_CURSOR)
return sb.String()
}