Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 243533 | Differences between
and this patch

Collapse All | Expand All

(-)ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java (-1 / +3 lines)
Lines 1172-1178 Link Here
1172
			smartIndentAfterNewLine(d, c);
1172
			smartIndentAfterNewLine(d, c);
1173
		else if (c.text.length() == 1)
1173
		else if (c.text.length() == 1)
1174
			smartIndentOnKeypress(d, c);
1174
			smartIndentOnKeypress(d, c);
1175
		else if (c.text.length() > 1 && getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_PASTE))
1175
		else if (c.text.length() > 1
1176
				&& getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_PASTE)
1177
				&& ! c.text.matches("^ *$") ) //$NON-NLS-1$, skip spaces-only strings
1176
			smartPaste(d, c); // no smart backspace for paste
1178
			smartPaste(d, c); // no smart backspace for paste
1177
1179
1178
	}
1180
	}

Return to bug 243533