monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] EDITOR vs VISUAL discrepency


From: Shaun Jackman
Subject: [Monotone-devel] EDITOR vs VISUAL discrepency
Date: Mon, 26 Sep 2005 15:10:19 -0600

The documentation states that $VISUAL is used in preference to
$EDITOR, if $VISUAL is set, but the behaviour seems to be the
opposite.

Cheers,
Shaun

function edit_comment(basetext, user_log_message)
   local exe = "vi"
   local visual = os.getenv("VISUAL")
   if (visual ~= nil) then exe = visual end
   local editor = os.getenv("EDITOR")
   if (editor ~= nil) then exe = editor end
...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]