diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/JoinLinesCommand.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/JoinLinesCommand.java index 19747cfac..f0075a385 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/JoinLinesCommand.java +++ b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/JoinLinesCommand.java @@ -51,6 +51,8 @@ public static void doIt(EditorAdaptor editorAdaptor, int count, boolean isSmart) glue = ""; for (int j = 0; j < secondLine.length() && Character.isWhitespace(secondLine.charAt(j)); j++) bolOffset++; + if (modelContent.getText(bolOffset, 1).charAt(0) == ')') + glue = ""; } else glue = ""; modelContent.replace(eolOffset, bolOffset - eolOffset, glue);