File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ func errUnlessExecutable(file string) error {
6969 return fmt .Errorf ("Not executable: %s" , file )
7070}
7171
72+ // pickAnEditor returns the editor command to execute, where it came from
73+ // ("VISUAL", "EDITOR" or "fallback list"), and an error if no editor could
74+ // be found.
7275func pickAnEditor () (string , string , error ) {
7376 // Get an editor setting from either VISUAL or EDITOR
7477 editorEnv := "VISUAL"
@@ -202,7 +205,7 @@ func handleEditingRequest(p *Pager) {
202205 log .Warn ("Failed to launch editor in paused session: " , err )
203206 p .mode = & PagerModeInfo {
204207 Pager : p ,
205- Text : "Failed to launch editor: " + err .Error (),
208+ Text : "Failed to launch editor \" " + editor + " \" : " + err .Error (),
206209 }
207210
208211 return
You can’t perform that action at this time.
0 commit comments