You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not ideal since EDITOR is meant (by old convention) to refer to a command-line editor like vi or vim, not a graphical program. When these xxdiff menu options are used with EDITOR=vim, nothing happens, which is very confusing. The error message at the end of XxApp::editFIle is not shown, because the if ( ! _editProc[bufIdx]->waitForStarted() ) block is not entered:
oss << "There has been an error spawning the editor ("
<< executable << "): "
<< _editProc[bufIdx]->errorString() << Qt::endl;
}
newXxSuicideMessageBox(
_mainWindow, "Error.", text, QMessageBox::Warning
);
I didn't debug further, but it makes sense that invoking vim outside a terminal would not work. I would have expected the error message to be shown, though.
The text was updated successfully, but these errors were encountered:
This project is almost 25 years old and I haven't changed it in a while - years (I use tmux-based console diffing tools more these days). You're welcome to send me a patch; unless it looks egregiously bad I will rubberstamp it.
The command used to "Edit right file" or "Edit left" file is hardcoded to
xterm -e vi
ifEDITOR
is not set in the environment:xxdiff/src/resources.cpp
Lines 335 to 341 in 50cb42b
This is not ideal since
EDITOR
is meant (by old convention) to refer to a command-line editor likevi
orvim
, not a graphical program. When these xxdiff menu options are used withEDITOR=vim
, nothing happens, which is very confusing. The error message at the end ofXxApp::editFIle
is not shown, because theif ( ! _editProc[bufIdx]->waitForStarted() )
block is not entered:xxdiff/src/app.cpp
Lines 2723 to 2738 in 50cb42b
I didn't debug further, but it makes sense that invoking
vim
outside a terminal would not work. I would have expected the error message to be shown, though.The text was updated successfully, but these errors were encountered: