Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 4562 Details for
Bug 23686
undoing of string split - undoes too much
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch: Undo line at a time
DefaultUndoManager (text/plain), 1.16 KB, created by
snowl
on 2003-04-12 05:31:41 EDT
(
hide
)
Description:
Patch: Undo line at a time
Filename:
MIME Type:
Creator:
snowl
Created:
2003-04-12 05:31:41 EDT
Size:
1.16 KB
patch
obsolete
>Index: DefaultUndoManager.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultUndoManager.java,v >retrieving revision 1.8 >diff -u -r1.8 DefaultUndoManager.java >--- DefaultUndoManager.java 24 Mar 2003 20:20:47 -0000 1.8 >+++ DefaultUndoManager.java 12 Apr 2003 09:19:17 -0000 >@@ -616,14 +616,20 @@ > // text will be inserted > if ((length == 1) || isWhitespaceText(newText)) { > // by typing or model manipulation >- if (!fInserting || (start != fCurrent.fStart + fTextBuffer.length())) { >+ if (!fInserting || (start != fCurrent.fStart + fTextBuffer.length()) || isWhitespaceText(e.getText())) { > commit(); > fInserting= true; >- } >+ } >+ > if (fCurrent.fStart < 0) > fCurrent.fStart= fCurrent.fEnd= start; >- if (length > 0) >- fTextBuffer.append(newText); >+ if (length > 0) { >+ fTextBuffer.append(newText); >+ if (isWhitespaceText(e.getText())) { >+ commit(); >+ fInserting= true; >+ } >+ } > } else if (length > 0) { > // by pasting > commit();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23686
: 4562