Skip to content

Commit

Permalink
Fix regression in chunk.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Feb 20, 2013
1 parent 834aefc commit 9279f0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chunk.ml
Expand Up @@ -70,7 +70,8 @@ let sync_step outline tokens t =
let rec rewind_defs defs t =
match History.backward t with
| Some ((_,(_,Some (Definitions []))), _) -> assert false
| Some ((_,(_,Some (Definitions (d::_)))), t') -> rewind_defs (d.Location.txt :: defs) t'
| Some ((_,(_,Some (Definitions lst))), t') ->
rewind_defs (List.map (fun d -> d.Location.txt) lst @ defs) t'
| Some ((_,(_,Some (Module_closing (d,offset)))), t') ->
rewind_defs (d.Location.txt :: defs) (History.seek_offset offset t')
| Some ((_,(_,Some (Module_opening (loc,s,m)))), t') -> loc,s,m,defs,t'
Expand Down

0 comments on commit 9279f0b

Please sign in to comment.