View Issue Details

IDProjectCategoryView StatusLast Update
0001812Far ManagerEditorpublic2011-06-25 19:42
ReporterMaximusAssigned ToDrKnS 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0 
Target VersionFixed in Version3.0 
Summary0001812: Поломалась раскраска в редакторе
DescriptionНеправильное условие -> цвета установленные плагинами вообще игнорируются
TagsNo tags attached.
Build2078

Activities

Maximus

2011-06-25 18:07

reporter  

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
Colorer110625.diff (651 bytes)

Issue History

Date Modified Username Field Change
2011-06-25 18:07 Maximus New Issue
2011-06-25 18:07 Maximus File Added: Colorer110625.diff
2011-06-25 19:42 DrKnS Build => 2078
2011-06-25 19:42 DrKnS Status new => closed
2011-06-25 19:42 DrKnS Assigned To => DrKnS
2011-06-25 19:42 DrKnS Resolution open => fixed
2011-06-25 19:42 DrKnS Fixed in Version => 3.0