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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View file

@ -54,6 +54,8 @@ Detailed list of changes
- ``kitten @ set-background-opacity`` - add a new ``--toggle`` flag to easily switch opacity between the specified value and the default (:iss:`6691`)
- 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 (:iss:`6708`)
0.30.1 [2023-10-05]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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()
}