View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001812 | Far Manager | Editor | public | 2011-06-25 14:07 | 2011-06-25 15:42 |
| Reporter | Maximus | Assigned To | DrKnS | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0 | ||||
| Fixed in Version | 3.0 | ||||
| Summary | 0001812: Поломалась раскраска в редакторе | ||||
| Description | Неправильное условие -> цвета установленные плагинами вообще игнорируются | ||||
| Tags | No tags attached. | ||||
| Build | 2078 | ||||
|
|
Colorer110625.diff (651 bytes)
Index: scrbuf.cpp
===================================================================
--- scrbuf.cpp (revision 6355)
+++ scrbuf.cpp (working copy)
@@ -262,8 +262,10 @@
FAR_CHAR_INFO *PtrBuf = Buf+(Y1+I)*BufX+X1;
for (int J = 0; J < X2-X1+1; J++, ++PtrBuf)
- if (PtrBuf->Attributes.ForegroundColor != ExceptColor.ForegroundColor && PtrBuf->Attributes.BackgroundColor != ExceptColor.BackgroundColor)
+ {
+ if (PtrBuf->Attributes.ForegroundColor != ExceptColor.ForegroundColor || PtrBuf->Attributes.BackgroundColor != ExceptColor.BackgroundColor)
PtrBuf->Attributes = Color;
+ }
}
#ifdef DIRECT_SCREEN_OUT
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-06-25 14:07 | Maximus | New Issue | |
| 2011-06-25 14:07 | Maximus | File Added: Colorer110625.diff | |
| 2011-06-25 15:42 | DrKnS | Build | => 2078 |
| 2011-06-25 15:42 | DrKnS | Status | new => closed |
| 2011-06-25 15:42 | DrKnS | Assigned To | => DrKnS |
| 2011-06-25 15:42 | DrKnS | Resolution | open => fixed |
| 2011-06-25 15:42 | DrKnS | Fixed in Version | => 3.0 |