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

trywhy3: increment line number on '\n'

parent 4f60b36b
...@@ -226,7 +226,7 @@ module Editor = ...@@ -226,7 +226,7 @@ module Editor =
if lcur >= lstop then i if lcur >= lstop then i
else else
let c = get_char buffer i in 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)
in in
loop 1 0 loop 1 0
in in
......
Markdown is supported
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