mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDiagnostics: Reports $EDITOR/$VISUAL
This commit is contained in:
parent
7434ad59c2
commit
3ffc98dfea
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ int CmdDiagnostics (Log& log)
|
||||||
<< (env ? env : "-")
|
<< (env ? env : "-")
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
|
// Determine rc.editor/$EDITOR/$VISUAL.
|
||||||
|
char* peditor;
|
||||||
|
if ((peditor = getenv ("VISUAL")) != NULL)
|
||||||
|
out << " $VISUAL: " << peditor << "\n";
|
||||||
|
else if ((peditor = getenv ("EDITOR")) != NULL)
|
||||||
|
out << " $EDITOR: " << peditor << "\n";
|
||||||
|
|
||||||
out << "\n";
|
out << "\n";
|
||||||
std::cout << out.str ();
|
std::cout << out.str ();
|
||||||
log.write ("info", out.str ());
|
log.write ("info", out.str ());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue