ocamlspot / pathreparse.ml

Diff from to

pathreparse.ml

   	  Option.map pos_start.Position.bytes ~f:(fun bytes ->
   	    bytes + diff.Lexing.pos_cnum ) }
       in
-      let subregion locid =
-        { region with
-          Region.start = position_add region.Region.start locid.lident_loc.Location.loc_start;
-          end_ = position_add region.Region.start locid.lident_loc.Location.loc_end }
+      let subregion locid = Region.change_positions region 
+        (position_add region.Region.start locid.lident_loc.Location.loc_start)
+        (position_add region.Region.start locid.lident_loc.Location.loc_end)
       in
       let search path locid = 
         (* The last id name can be different. For example,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.