Author: sdzmitrovich
Date: 2008-04-04 05:32:11 -0400 (Fri, 04 Apr 2008)
New Revision: 7314
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java
Log:
code adjustment
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java 2008-04-04
09:32:08 UTC (rev 7313)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java 2008-04-04
09:32:11 UTC (rev 7314)
@@ -271,7 +271,7 @@
if (selection.getFocusNode() != null) {
if ((selection.getFocusNode().getNodeType() != nsIDOMNode.TEXT_NODE)
- && (selection.getFocusOffset() != 0)) {
+ && (selection.getFocusOffset() != 0) &&
(selection.getIsCollapsed())) {
return selection.getFocusNode().getChildNodes().item(
selection.getFocusOffset() - 1);
Show replies by date