View Issue Details

IDProjectCategoryView StatusLast Update
0001811PluginsFARCmdspublic2012-03-20 13:51
ReporterMaximus Assigned Tovskirdin  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0 
Fixed in Version3.0 
Summary0001811: "goto:" ошибочно меняет путь на пассивной панели вместо активной
Descriptionполомали
TagsNo tags attached.

Activities

Maximus

2011-06-25 14:07

reporter  

FarCmd110625.diff (1,844 bytes)   
Index: FARCmds.cpp
===================================================================
--- FARCmds.cpp	(revision 6355)
+++ FARCmds.cpp	(working copy)
@@ -80,6 +80,7 @@
 {
 	Info.PanelControl(PANEL_ACTIVE,FCTL_GETPANELINFO,0,&PInfo);
 	fullcmd[0]=cmd[0]=selectItem[0]=L'\0';
+	HANDLE _PANEL_HANDLE = PANEL_ACTIVE;
 
 	if (OInfo->OpenFrom==OPEN_COMMANDLINE)
 	{
@@ -106,6 +107,7 @@
 			lstrcat(selectItem,PPI->FileName);
 			free(PPI);
 		}
+		_PANEL_HANDLE=PANEL_PASSIVE;
 	}
 
 	/*��������� ������ �� �����*/
@@ -127,22 +129,22 @@
 		FSF.Unquote(Dir);
 
 		if (*Dir)
-			Info.PanelControl(PANEL_PASSIVE,FCTL_SETPANELDIR,0,&Dir);
+			Info.PanelControl(_PANEL_HANDLE,FCTL_SETPANELDIR,0,&Dir);
 
-		Info.PanelControl(PANEL_PASSIVE,FCTL_GETPANELINFO,0,&PInfo);
+		Info.PanelControl(_PANEL_HANDLE,FCTL_GETPANELINFO,0,&PInfo);
 		PRI.CurrentItem=PInfo.CurrentItem;
 		PRI.TopPanelItem=PInfo.TopPanelItem;
 
 		for (int J=0; J < PInfo.ItemsNumber; J++)
 		{
 			bool Equal=false;
-			size_t Size = Info.PanelControl(PANEL_PASSIVE,FCTL_GETPANELITEM,J,0);
+			size_t Size = Info.PanelControl(_PANEL_HANDLE,FCTL_GETPANELITEM,J,0);
 			PluginPanelItem* PPI=(PluginPanelItem*)malloc(Size);
 
 			if (PPI)
 			{
 				FarGetPluginPanelItem gpi={Size, PPI};
-				Info.PanelControl(PANEL_PASSIVE,FCTL_GETPANELITEM,J,&gpi);
+				Info.PanelControl(_PANEL_HANDLE,FCTL_GETPANELITEM,J,&gpi);
 				Equal=!FSF.LStricmp(Name,FSF.PointToName(PPI->FileName));
 				free(PPI);
 			}
@@ -155,11 +157,11 @@
 			}
 		}
 
-		Info.PanelControl(PANEL_PASSIVE,FCTL_REDRAWPANEL,0,&PRI);
+		Info.PanelControl(_PANEL_HANDLE,FCTL_REDRAWPANEL,0,&PRI);
 	}
 	else
 	{
-		Info.PanelControl(PANEL_PASSIVE,FCTL_REDRAWPANEL,0,0);
+		Info.PanelControl(_PANEL_HANDLE,FCTL_REDRAWPANEL,0,0);
 	}
 
 	return INVALID_HANDLE_VALUE;
FarCmd110625.diff (1,844 bytes)   

vskirdin

2011-07-24 07:27

administrator   bugnote:0007303

build 82

Maximus

2012-03-16 15:26

reporter   bugnote:0008777

закрыт

Issue History

Date Modified Username Field Change
2011-06-25 14:07 Maximus New Issue
2011-06-25 14:07 Maximus File Added: FarCmd110625.diff
2011-07-24 07:27 vskirdin Note Added: 0007303
2011-07-24 07:27 vskirdin Assigned To => vskirdin
2011-07-24 07:27 vskirdin Status new => feedback
2012-03-16 15:26 Maximus Note Added: 0008777
2012-03-16 15:26 Maximus Status feedback => assigned
2012-03-16 15:26 Maximus Status assigned => resolved
2012-03-20 13:51 vskirdin Status resolved => closed
2012-03-20 13:51 vskirdin Resolution open => fixed
2012-03-20 13:51 vskirdin Fixed in Version => 3.0