|
From: <mir...@us...> - 2006-08-20 22:06:34
|
Revision: 1575 Author: mirkostocker Date: 2006-08-20 15:06:09 -0700 (Sun, 20 Aug 2006) ViewCVS: http://svn.sourceforge.net/rubyeclipse/?rev=1575&view=rev Log Message: ----------- A small change to fix ticket #115 (cannot doubleclick-select if the word starts at the first character of the file). Modified Paths: -------------- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyWordFinder.java Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyWordFinder.java =================================================================== --- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyWordFinder.java 2006-08-20 04:05:53 UTC (rev 1574) +++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyWordFinder.java 2006-08-20 22:06:09 UTC (rev 1575) @@ -50,9 +50,10 @@ end = pos; } catch (BadLocationException x) { + return null; } - if (start > -1 && end > -1) { + if (start >= -1 && end > -1) { if (start == offset && end == offset) return new Region(offset, 0); else if (start == offset) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |