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
222222 ) b fmt
223223 ;;
224224
225−let wcmd1 cmd opaque = let s = ~> opaque in
225+let wcmd1 cmd opaque =
226+ let s = ~> opaque in
226227 let l = String.length s in
227228 let b = Bytes.create (l+1) in
228− Bytes.set b 0 cmd;
229− Bytes.blit_string s 0 b 1 l;
229+ Bytes.set b l cmd;
230+ Bytes.blit_string s 0 b 0 l;
230231 Ffi.wcmd state.ss b @@ l + 1;
231232 ;;
232233

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