Index: /CKEditor/trunk/_source/plugins/indent/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/indent/plugin.js	(revision 3390)
+++ /CKEditor/trunk/_source/plugins/indent/plugin.js	(revision 3391)
@@ -144,5 +144,5 @@
 		// Convert the array back to a DOM forest (yes we might have a few subtrees now).
 		// And replace the old list with the new forest.
-		var newList = CKEDITOR.plugins.list.arrayToList( listArray, null, null, editor.config.enterMode );
+		var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, 0 );
 		if ( newList )
 			newList.listNode.replace( listNode );
@@ -234,13 +234,9 @@
 
 			var bookmarks = selection.createBookmarks( true ),
-				boundaryNodes = range.getBoundaryNodes(),
-				nearestListBlock = boundaryNodes.startNode.getCommonAncestor( boundaryNodes.endNode );
-
-			while ( nearestListBlock )
-			{
-				if ( nearestListBlock.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ nearestListBlock.getName() ] )
-					break;
+				nearestListBlock = range.getCommonAncestor();
+
+			while ( !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT && 
+				listNodeNames[ nearestListBlock.getName() ] ) )
 				nearestListBlock = nearestListBlock.getParent();
-			}
 
 			if ( nearestListBlock )
