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 23686
Collapse All | Expand All

(-)DefaultUndoManager.java (-4 / +10 lines)
Lines 616-629 Link Here
616
			// text will be inserted
616
			// text will be inserted
617
			if ((length == 1) || isWhitespaceText(newText)) {
617
			if ((length == 1) || isWhitespaceText(newText)) {
618
				// by typing or model manipulation
618
				// by typing or model manipulation
619
				if (!fInserting || (start != fCurrent.fStart + fTextBuffer.length())) {
619
				if (!fInserting || (start != fCurrent.fStart + fTextBuffer.length()) || isWhitespaceText(e.getText())) {
620
					commit();
620
					commit();
621
					fInserting= true;
621
					fInserting= true;
622
				} 
622
				}
623
        
623
				if (fCurrent.fStart < 0)
624
				if (fCurrent.fStart < 0)
624
					fCurrent.fStart= fCurrent.fEnd= start;
625
					fCurrent.fStart= fCurrent.fEnd= start;
625
				if (length > 0)
626
				if (length > 0) {
626
					fTextBuffer.append(newText);
627
          fTextBuffer.append(newText);
628
          if (isWhitespaceText(e.getText())) {
629
            commit();
630
            fInserting= true;
631
          }
632
        }
627
			} else if (length > 0) {
633
			} else if (length > 0) {
628
				// by pasting
634
				// by pasting
629
				commit();
635
				commit();

Return to bug 23686