Index: /CKEditor/branches/prototype/_source/core/dom/range.js
===================================================================
--- /CKEditor/branches/prototype/_source/core/dom/range.js	(revision 2798)
+++ /CKEditor/branches/prototype/_source/core/dom/range.js	(revision 2799)
@@ -919,5 +919,5 @@
 						walker = new CKEDITOR.domWalker( startNode ),
 						data = walker.reverse( guardFunction),
-						boundaryEvent = data.events.pop();
+						boundaryEvent = data.events.shift();
 
 					this.setStartBefore( boundaryEvent.from );
@@ -929,4 +929,6 @@
 					this.setEndAfter( boundaryEvent.from );
 					break;
+
+				default:
 			}
 		},
