Author Topic: Find and Replace GUI > Replace > Preview All not working.  (Read 2847 times)

Mike M

  • Community Member
  • Posts: 15
  • Hero Points: 2
Find and Replace GUI > Replace > Preview All not working.
« on: October 23, 2015, 06:48:43 PM »
With a document loaded, hit Ctrl-R to start the Find and Replace GUI.
Enter a "search for" phrase and a "replace with" phrase and select Preview All.
The "search for" phrase must actually exist in the document.
I get the following error:

Slick-C Error
Invalid selection handle
file=tbfind.ex offset=15260

Slick-C Stack:
 Invalid selection handle
tbfind.ex 15260 tbfind:_buffer_replace(patents,I?*,xxxxx,1,1,0,<empty>)   p_window_id: 130   p_object: OI_EDITOR   p_name:
tbfind.ex 15853 replace_buffer_text(patents,I?*,xxxxx,0,1,0,0,0,0)   p_window_id: 59   p_object: OI_COMBO_BOX   p_name: _replacestring
tbfind.ex 16008 tbfind:_replace(patents,I?*,xxxxx,0,1,0,0,0,0)   p_window_id: 59   p_object: OI_COMBO_BOX   p_name: _replacestring
tbfind.ex 16824 tbfind:_begin_replace(*,1)   p_window_id: 59   p_object: OI_COMBO_BOX   p_name: _replacestring
tbfind.ex 17002 _tbfind_form._replacepreview_btn.lbutton_up()   p_window_id: 123   p_object: OI_COMMAND_BUTTON   p_name: _replacepreview_btn

Next, create a new document that is 10 lines of the word "test".
Now, the Preview All button is ghosted (not available).
Shouldn't it always be available?

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Find and Replace GUI > Replace > Preview All not working.
« Reply #1 on: October 23, 2015, 07:16:45 PM »
I've confirmed the Slick-C stack and am working on a fix for it.   

The Preview Diff feature does require a file on disk to compare against.  That is an existing limitation which is why it is disabled for unnamed, unsaved file.