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
111111 s selcmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -i"|Pmacos -> "LC_CTYPE=UTF-8 pbcopy"|Punknown -> "cat")'
112112 s pastecmd '(match platform with |Plinux|Pbsd -> "LC_CTYPE=UTF-8 xclip -o"|Pmacos -> "LC_CTYPE=UTF-8 pbpaste"|Punknown -> "echo")'
113113 s paxcmd '"cat"'
114−s femcmd '"cat"'
114+s femcmd E.s
115115 s passcmd E.s
116116 s savecmd E.s
117117 b updatecurs true
main.ml+6−4
@@ -5233,10 +5233,12 @@ let () = · 5232 unmodified lines
52335233 (match Buffer.length state.errmsgs with
52345234 | 0 -> ()
52355235 | n ->
5236− pipef ~closew:false "eflush"
5237− (fun w ->
5238− match Unix.write w (Buffer.to_bytes state.errmsgs) 0 n with
5239− | exception _ | _ -> ()) conf.femcmd);
5236+ if nonemptystr conf.femcmd
5237+ then pipef ~closew:false "eflush"
5238+ (fun w ->
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);
52405242 Config.save leavebirdseye;
52415243 if Ffi.hasunsavedchanges ()
52425244 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