pasting into a speedbar doesn't call the text box's box
Reported by Roger | February 19th, 2010 @ 11:53 PM | in 0.3.3 (closed)
How to reproduce:
open a "find in file" speedbar
search for something
paste something else into it
hit "Search"
It searches for the previous search, instead of the new one.
This patch appears to fix it, but I wasn't sure if this is the right way or not.
Thanks.
-r
diff --git
a/plugins/application_swt/lib/application_swt/speedbar.rb
b/plugins/application_swt/lib/application_swt/speedbar.rb
index aa4f62a..203ac1d 100644
--- a/plugins/application_swt/lib/application_swt/speedbar.rb +++
b/plugins/application_swt/lib/application_swt/speedbar.rb @@ -99,7
+99,7 @@ module Redcar
gridData.grabExcessHorizontalSpace = true
gridData.horizontalAlignment = Swt::Layout::GridData::FILL
mate_text.getControl.set_layout_data(gridData)
-
mate_text.getControl.add_modify_listener do
-
mate_text.getControl.add_caret_listener do ignore(item.name) do item.value = mate_text.getControl.get_text if item.listener
end end item.add_listener(:changed_value) do |new_value|
-
ignore(item.name) do
-
ignore(item.name) do mate_text.getControl.set_text(new_value) end end
Comments and changes to this ticket
-
Daniel Lucraft February 21st, 2010 @ 08:57 AM
- State changed from new to open
- Milestone set to 0.3.3
-
Daniel Lucraft February 21st, 2010 @ 09:10 AM
Putting a diff as an attachment instead of inline would make it easier to read.
-
Daniel Lucraft February 21st, 2010 @ 09:14 AM
- State changed from open to resolved
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.
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.