#532 ✓resolved
Roger

setCaretOffset failure in certain instances

Reported by Roger | June 1st, 2011 @ 06:07 PM

How to reproduce:
open a file with dos "\r\n", highlight text "at the end of the file, and up to the very last spot" (leave caret at end of file).
Now choose "save as" and choose a new filename.

Result: new file is saved, but tab becomes uneditable.

error in sync exec
java.lang.IllegalArgumentException: Argument not valid
org.eclipse.swt.SWT:-1:in error' org.eclipse.swt.SWT:-1:inerror'
org.eclipse.swt.SWT:-1:in error' org.eclipse.swt.custom.StyledText:-1:insetCaretOffset'
c:/dev/ruby/redcar/plugins/edit_view_swt/lib/edit_view_swt/document.rb:92:in text=' c:/dev/ruby/redcar/plugins/edit_view/lib/edit_view/document.rb:254:intext='
c:/dev/ruby/redcar/plugins/edit_view/lib/edit_view/document.rb:749:in update_from_mirror' c:/dev/ruby/redcar/plugins/edit_view/lib/edit_view.rb:606:incheck_for_updated_document'
c:/dev/ruby/redcar/plugins/edit_view/lib/edit_view.rb:278:in focussed_edit_view=' c:/dev/ruby/redcar/plugins/edit_view_swt/lib/edit_view_swt.rb:442:inswt_focus_gained'
c:/dev/ruby/redcar/plugins/edit_view_swt/lib/edit_view_swt.rb:597:in focusGained' c:/dev/ruby/redcar/plugins/edit_view_swt/lib/edit_view_swt.rb:451:infocus'
c:/dev/ruby/redcar/plugins/edit_view_swt/lib/edit_view_swt/edit_tab.rb:17:in focus' org/jruby/RubyMethod.java:133:incall'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Tags

Pages