Skip to content

Commit 924ea28

Browse files
committed
gui: change EDITOR to OPENROAD_EDITOR
Signed-off-by: Matt Liberty <[email protected]>
1 parent 723f7c0 commit 924ea28

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/gui/src/inspector.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,17 +971,18 @@ void Inspector::doubleClicked(const QModelIndex& index)
971971
bool 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

0 commit comments

Comments
 (0)