History

Fix wcmd1

Premature optimization and all that...

malc committed 6 years ago

Commit 5ea5d231 parent d7ec91e1 file · +4 −3Browse files

Unified · Split

main.ml+4−3
@@ -222,11 +222,12 @@ let wcmd cmd fmt = · 221 unmodified lines
222 ) b fmt222 ) b fmt
223;;223;;
224 224
225let wcmd1 cmd opaque = let s = ~> opaque in225let wcmd1 cmd opaque =
226 let s = ~> opaque in
226 let l = String.length s in227 let l = String.length s in
227 let b = Bytes.create (l+1) in228 let b = Bytes.create (l+1) in
228 Bytes.set b 0 cmd;229 Bytes.set b l cmd;
229 Bytes.blit_string s 0 b 1 l;230 Bytes.blit_string s 0 b 0 l;
230 Ffi.wcmd state.ss b @@ l + 1;231 Ffi.wcmd state.ss b @@ l + 1;
231;;232;;
232 233

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