History

Cosmetics

Interpret empty femcmd as a directive to dump error messages to stdout and make default femcmd empty.

malc committed 6 years ago

Commit 60425651 parent 16798f32 files · +7 −5Browse files

Unified · Split

2 files
  1. genconfstr.sh +1 −1
  2. main.ml +6 −4
genconfstr.sh+1−1
@@ -111,7 +111,7 @@ g beyecolumns "columncount option" None · 110 unmodified lines
111s selcmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -i"|Pmacos -> "LC_CTYPE=UTF-8 pbcopy"|Punknown -> "cat")'111s selcmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -i"|Pmacos -> "LC_CTYPE=UTF-8 pbcopy"|Punknown -> "cat")'
112s pastecmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -o"|Pmacos -> "LC_CTYPE=UTF-8 pbpaste"|Punknown -> "echo")'112s pastecmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -o"|Pmacos -> "LC_CTYPE=UTF-8 pbpaste"|Punknown -> "echo")'
113s paxcmd '"cat"'113s paxcmd '"cat"'
114s femcmd '"cat"'114s femcmd E.s
115s passcmd E.s115s passcmd E.s
116s savecmd E.s116s savecmd E.s
117b updatecurs true117b updatecurs true
main.ml+6−4
@@ -5233,10 +5233,12 @@ let () = · 5232 unmodified lines
5233 (match Buffer.length state.errmsgs with5233 (match Buffer.length state.errmsgs with
5234 | 0 -> ()5234 | 0 -> ()
5235 | n ->5235 | n ->
5236 pipef ~closew:false "eflush"5236 if nonemptystr conf.femcmd
5237 (fun w ->5237 then pipef ~closew:false "eflush"
5238 match Unix.write w (Buffer.to_bytes state.errmsgs) 0 n with5238 (fun w ->
5239 | exception _ | _ -> ()) conf.femcmd);5239 match Unix.write w (Buffer.to_bytes state.errmsgs) 0 n with
5240 | exception _ | _ -> ()) conf.femcmd
5241 else print_endline @@ Buffer.contents state.errmsgs);
5240 Config.save leavebirdseye;5242 Config.save leavebirdseye;
5241 if Ffi.hasunsavedchanges ()5243 if Ffi.hasunsavedchanges ()
5242 then save ()5244 then save ()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t