src/Tools/jEdit/src/jedit/document_model.scala
changeset 38151 2837c952ca31
parent 38150 67fc24df3721
child 38152 eab0d1c2e46e
--- a/src/Tools/jEdit/src/jedit/document_model.scala	Thu Aug 05 14:35:35 2010 +0200
+++ b/src/Tools/jEdit/src/jedit/document_model.scala	Thu Aug 05 16:58:18 2010 +0200
@@ -54,6 +54,7 @@
   }
 }
 
+
 class Document_Model(val session: Session, val buffer: Buffer)
 {
   /* visible line end */
@@ -77,7 +78,7 @@
   @volatile private var history = Change.init // owned by Swing thread
 
   def current_change(): Change = history
-  def recent_document(): Document = current_change().ancestors.find(_.is_assigned).get.join_document
+  def snapshot(): Change.Snapshot = current_change().snapshot(thy_name)
 
 
   /* transforming offsets */