Commit 91932c03 authored by Andrei Paskevich's avatar Andrei Paskevich
Browse files

trywhy3: increment line number on '\n'

parent 4f60b36b
......@@ -226,7 +226,7 @@ module Editor =
if lcur >= lstop then i
let c = get_char buffer i in
loop (if c == 0 then lcur+1 else lcur) (i+1)
loop (if c == 10 then lcur+1 else lcur) (i+1)
loop 1 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment