File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -971,17 +971,18 @@ void Inspector::doubleClicked(const QModelIndex& index)
971971bool invokeEditorFromEnv (const FileLine& file_line)
972972{
973973 QString editorCommand
974- = QProcessEnvironment::systemEnvironment ().value (" EDITOR " );
974+ = QProcessEnvironment::systemEnvironment ().value (" OPENROAD_EDITOR " );
975975
976976 if (editorCommand.isEmpty ()) {
977- qWarning () << " EDITOR environment variable not set." ;
977+ qWarning () << " OPENROAD_EDITOR environment variable not set." ;
978978 return false ;
979979 }
980980
981981 // Check if the placeholders are present in the command string.
982982 if (!editorCommand.contains (" %FILE%" ) || !editorCommand.contains (" %LINE%" )) {
983- qWarning () << " Error: The EDITOR command does not contain the necessary "
984- " placeholders." ;
983+ qWarning ()
984+ << " Error: The OPENROAD_EDITOR command does not contain the necessary "
985+ " placeholders." ;
985986 qWarning ()
986987 << " It must contain both %FILE% and %LINE% to function correctly." ;
987988 qWarning () << " Current command:" << editorCommand;
@@ -1003,7 +1004,7 @@ bool invokeEditorFromEnv(const FileLine& file_line)
10031004 program = parts.first ();
10041005 arguments = parts.mid (1 );
10051006 } else {
1006- qWarning () << " Invalid EDITOR command:" << editorCommand;
1007+ qWarning () << " Invalid OPENROAD_EDITOR command:" << editorCommand;
10071008 return false ;
10081009 }
10091010
You can’t perform that action at this time.
0 commit comments