Interpret empty femcmd as a directive to dump error messages to stdout and make default femcmd empty.
Unified · Split
| @@ -111,7 +111,7 @@ g beyecolumns "columncount option" None · 110 unmodified lines | |||
| 111 | s selcmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -i"|Pmacos -> "LC_CTYPE=UTF-8 pbcopy"|Punknown -> "cat")' | 111 | s selcmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -i"|Pmacos -> "LC_CTYPE=UTF-8 pbcopy"|Punknown -> "cat")' |
| 112 | s pastecmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -o"|Pmacos -> "LC_CTYPE=UTF-8 pbpaste"|Punknown -> "echo")' | 112 | s pastecmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -o"|Pmacos -> "LC_CTYPE=UTF-8 pbpaste"|Punknown -> "echo")' |
| 113 | s paxcmd '"cat"' | 113 | s paxcmd '"cat"' |
| 114 | s femcmd '"cat"' | 114 | s femcmd E.s |
| 115 | s passcmd E.s | 115 | s passcmd E.s |
| 116 | s savecmd E.s | 116 | s savecmd E.s |
| 117 | b updatecurs true | 117 | b updatecurs true |
| @@ -5233,10 +5233,12 @@ let () = · 5232 unmodified lines | |||
| 5233 | (match Buffer.length state.errmsgs with | 5233 | (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 with | 5238 | (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 () |