 				atEnd: false
 				selection: {
 					updates: []
-					doc: null
+					pathname: null
 					range: {
 						fromV: null
 						toV: null


			selected_pathname = @$scope.history.selection.pathname

			console.log "[_calculateDiffDataFromSelection]", @$scope.history.selection.updates
			for pathname, doc of @_perDocSummaryOfUpdates(@$scope.history.selection.updates)
				console.log "[_calculateDiffDataFromSelection] doc:", pathname, doc
				if pathname == selected_pathname
					{fromV, toV} = doc
					break

			return {fromV, toV, pathname}

		# Set the track changes selected doc to one of the docs in the range
		# of currently selected updates. If we already have a selected doc


			@$scope.$on "entity:selected", (event, entity) =>
				if (@$scope.ui.view == "history") and (entity.type == "doc")
					@$scope.history.selection.pathname = _ide.fileTreeManager.getEntityPath(entity)
					@reloadDiff()

		show: () ->
