Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6354)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6355)
@@ -648,5 +648,5 @@
 							// Actual range anchor right beside test range at the inner boundary of text node.
 							if ( !distance )
-								return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? -1 : 1 ) };
+								return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? 0 : 1 ) };
 
 							// Start the measuring until distance overflows, meanwhile count the text nodes.
