|
From: <caw...@us...> - 2007-04-04 13:44:46
|
Revision: 2269
http://svn.sourceforge.net/rubyeclipse/?rev=2269&view=rev
Author: cawilliams
Date: 2007-04-04 06:44:45 -0700 (Wed, 04 Apr 2007)
Log Message:
-----------
fix problem where user tries to enter a new comment on a blank (whitespace only) line, so EOF followed comment in lexer: it would end up moving the cursor back two spaces, causing text to come out backwards when users typed!
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java 2007-04-03 18:02:35 UTC (rev 2268)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java 2007-04-04 13:44:45 UTC (rev 2269)
@@ -129,7 +129,6 @@
fSavedLength = getOffset() - fSavedOffset;
} else {
fSavedOffset--;
- tokenLength -= 2;
fSavedLength = 0;
}
lastWasComment = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|