Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2022-01-05 01:03:38 +0300
committerelfmz <fenix1905@tut.by>2022-01-05 01:03:38 +0300
commitae15c0cbb746360a388a6bb21d0b2a376ede5124 (patch)
tree14f1c40123155aae62a48049c775bf7ad7f75f4b /far2l/src/console
parent548bf851cf12c1e7234df47643f70f05e0ac47c4 (diff)
VT: fix #1170
Diffstat (limited to 'far2l/src/console')
-rw-r--r--far2l/src/console/AnsiEsc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/far2l/src/console/AnsiEsc.cpp b/far2l/src/console/AnsiEsc.cpp
index cbaf1cdb..0bcf536b 100644
--- a/far2l/src/console/AnsiEsc.cpp
+++ b/far2l/src/console/AnsiEsc.cpp
@@ -112,10 +112,10 @@ void FontState::ParseSuffixM(const int *args, int argc)
case 49: {
const BYTE def_attr = 7;//FOREGROUND_WHITE;
reverse = false;
- if (def_attr != 49) {
+ if (a != 49) {
foreground = Attr2Ansi[def_attr & 15];
}
- if (def_attr != 39) {
+ if (a != 39) {
background = Attr2Ansi[(def_attr >> 4) & 15];
}
} break;