Author Topic: B6: clicking on search result places cursor at wrong position in buffer  (Read 3506 times)

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
After searching for a string in the current buffer with "List all occurrences" enabled, clicking on the search results (or cycling through them with Ctrl-G) places the cursor in the wrong location within the buffer (7 lines before the actual result in my case).

After shutting down SE and restarting the problem "went away".

Iker

link

  • Community Member
  • Posts: 57
  • Hero Points: 3
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #1 on: October 02, 2014, 06:26:31 PM »
I had the same issue (although in mine was the cursor was placed a couple of lines after the target).  Restarting also fixed it for me, for now.  B6 Win64.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #2 on: October 02, 2014, 06:50:38 PM »
Does this occur in a very large file (> 10MB)?  And were there modifications (lines inserted) to the buffer since the search?

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #3 on: October 02, 2014, 06:59:39 PM »
In my case the file was ~87K (2400 lines of c++ source). I had made several edits to the file, mostly deletions, but don't recall the net change to the file's line count.

Iker

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #4 on: October 02, 2014, 07:02:39 PM »
That should have been okay, I may have to dig deeper.  Please post if you can get it to happen again.

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #5 on: October 02, 2014, 07:34:44 PM »
It's happening as I write this. Same file, I removed a few lines, searched (Ctrl-F), and clicked on a result - the cursor is placed before the expected line. If I search without "List all occurrences", or if I do the search via the "Find in Files" tab, the cursor positioning works as expected.

Iker

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #6 on: October 02, 2014, 07:42:22 PM »
I've reproduced it now.  Will investigate the cause.

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #7 on: October 29, 2014, 10:27:33 PM »
Was this fixed in RC1? I haven't been able to reproduce the problem under RC1 so far.

Iker

Clark

  • Moderator
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: B6: clicking on search result places cursor at wrong position in buffer
« Reply #8 on: October 29, 2014, 11:56:53 PM »
This should be fixed in RC1