mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixes to the undo, remove thumbs.db in dist
This commit is contained in:
@@ -237,6 +237,7 @@ public class Editor extends JFrame
|
||||
document.addUndoableEditListener(new UndoableEditListener() {
|
||||
public void undoableEditHappened(UndoableEditEvent e) {
|
||||
if (undo != null) {
|
||||
//System.out.println(e.getEdit());
|
||||
undo.addEdit(e.getEdit());
|
||||
undoAction.updateUndoState();
|
||||
redoAction.updateRedoState();
|
||||
@@ -951,6 +952,7 @@ public class Editor extends JFrame
|
||||
public void setText(String currentProgram,
|
||||
int selectionStart, int selectionEnd,
|
||||
UndoManager currentUndo) {
|
||||
//System.out.println("setting text, changing undo");
|
||||
this.undo = null;
|
||||
|
||||
//if (discardUndo) undo.discardAllEdits();
|
||||
|
||||
@@ -1069,6 +1069,11 @@ public class Sketch {
|
||||
* </OL>
|
||||
*/
|
||||
public void setCurrent(int which) {
|
||||
if (current == code[which]) {
|
||||
//System.out.println("already current, ignoring");
|
||||
return;
|
||||
}
|
||||
|
||||
// get the text currently being edited
|
||||
if (current != null) {
|
||||
current.program = editor.getText();
|
||||
|
||||
@@ -1165,8 +1165,7 @@ public class JEditTextArea extends JComponent
|
||||
painter.invalidateLineRange(selectionStartLine,selectionEndLine);
|
||||
painter.invalidateLineRange(newStartLine,newEndLine);
|
||||
|
||||
document.addUndoableEdit(new CaretUndo(
|
||||
selectionStart,selectionEnd));
|
||||
document.addUndoableEdit(new CaretUndo(selectionStart,selectionEnd));
|
||||
|
||||
selectionStart = newStart;
|
||||
selectionEnd = newEnd;
|
||||
|
||||
@@ -54,6 +54,7 @@ dos2unix processing/lib/preferences.txt 2> /dev/null
|
||||
find processing -name "*~" -exec rm -f {} ';'
|
||||
find processing -name ".DS_Store" -exec rm -f {} ';'
|
||||
find processing -name "._*" -exec rm -f {} ';'
|
||||
find processing -name "Thumbs.db" -exec rm -f {} ';'
|
||||
|
||||
# clean out the cvs entries
|
||||
find processing -name "CVS" -exec rm -rf {} ';' 2> /dev/null
|
||||
|
||||
@@ -91,6 +91,7 @@ find processing -name "*~" -exec rm -f {} ';'
|
||||
# need to leave ds store stuff cuz one of those is important
|
||||
#find processing -name ".DS_Store" -exec rm -f {} ';'
|
||||
find processing -name "._*" -exec rm -f {} ';'
|
||||
find processing -name "Thumbs.db" -exec rm -f {} ';'
|
||||
|
||||
# clean out the cvs entries
|
||||
find processing -name "CVS" -exec rm -rf {} ';' 2> /dev/null
|
||||
|
||||
@@ -83,6 +83,7 @@ rm -f processing/lib/*.bak
|
||||
find processing -name "*~" -exec rm -f {} ';'
|
||||
find processing -name ".DS_Store" -exec rm -f {} ';'
|
||||
find processing -name "._*" -exec rm -f {} ';'
|
||||
find processing -name "Thumbs.db" -exec rm -f {} ';'
|
||||
|
||||
# chmod +x the crew
|
||||
find processing -name "*.dll" -exec chmod +x {} ';'
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
0089 pde
|
||||
X properly rolled the version number in Base
|
||||
X fix nasty late-breaking undo bug
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115560243;start=0
|
||||
X remove Thumbs.db from examples/reference stuff
|
||||
|
||||
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
Reference in New Issue
Block a user