provide current node as selection instead of current element
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257806

Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java
index bfbaa22..7bb44cf 100644
--- a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java
+++ b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java
@@ -533,7 +533,7 @@
 				final List<Node> nodes = getDocument().getNodes(getSelectedRange());
 				selection = new StructuredSelection(nodes);
 			} else {
-				selection = new StructuredSelection(getCurrentElement());
+				selection = new StructuredSelection(getCurrentNode());
 			}
 
 			final SelectionChangedEvent e = new SelectionChangedEvent(VexWidget.this, selection);