Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8b47e90e
...
8b47e90eab5bb17bf0d57aa0fdae925d9c8a3441
authored
2006-05-20 10:43:48 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_whatnow): consult VISUAL and EDITOR environment variables for the default editor
1 parent
81df3b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
mh/mh_whatnow.c
mh/mh_whatnow.c
View file @
8b47e90
...
...
@@ -550,7 +550,13 @@ int
mh_whatnow
(
struct
mh_whatnow_env
*
wh
,
int
initial_edit
)
{
if
(
!
wh
->
editor
)
wh
->
editor
=
mh_global_profile_get
(
"Editor"
,
"prompter"
);
{
char
*
p
;
wh
->
editor
=
mh_global_profile_get
(
"Editor"
,
(
p
=
getenv
(
"VISUAL"
))
?
p
:
(
p
=
(
getenv
(
"EDITOR"
)))
?
p
:
"prompter"
);
}
if
(
initial_edit
)
mh_spawnp
(
wh
->
editor
,
wh
->
file
);
...
...
Please
register
or
sign in
to post a comment