History

Cosmetics

malc committed 6 years ago

Commit 3dc4a0a1 parent b1b1e661 file · +5 −6Browse files

Unified · Split

main.ml+5−6
@@ -5237,12 +5237,11 @@ let () = · 5236 unmodified lines
52375237 in
52385238 match loop infinity with
52395239 | exception Quit ->
5240− (try
5241− let s = Buffer.contents state.errmsgs in
5242− match String.length s with
5243− | 0 -> ()
5244− | n -> ignore @@ Unix.write efd (Bytes.of_string s) 0 n
5245− with _ -> ());
5240+ (match Buffer.length state.errmsgs with
5241+ | 0 -> ()
5242+ | n ->
5243+ match Unix.write efd (Buffer.to_bytes state.errmsgs) 0 n with
5244+ | exception _ | _ -> ());
52465245 Config.save leavebirdseye;
52475246 if Ffi.hasunsavedchanges ()
52485247 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