Author Topic: Weird behavior...  (Read 3746 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Weird behavior...
« on: March 21, 2016, 11:41:32 PM »
So lately, I've been thinking I'm really clumsy on the keyboard - because it seems like Slick is switching buffers on me without me asking.
I just happened to repro twice in a row, so I know that I didn't fumble-finger it.


When I hit "ctrl+c", Slick switched buffers on me instead of copying the line of data.


I had done a find in files and I was attempting to copy one of the matched lines.
I hit Ctrl+C to grab the line, but the buffer switched out from underneath me.


I don't have good repro steps, it just happens sometimes.


Anyone else seeing something like this?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6875
  • Hero Points: 530
Re: Weird behavior...
« Reply #1 on: March 21, 2016, 11:54:58 PM »
Are you using a notebook?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Weird behavior...
« Reply #2 on: March 22, 2016, 01:32:47 AM »
nope - desktop

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6875
  • Hero Points: 530
Re: Weird behavior...
« Reply #3 on: March 22, 2016, 02:02:47 AM »
Desktop keyboards are better. Notebook windows keyboards are often a joke. I had to ask.

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Weird behavior...
« Reply #4 on: March 22, 2016, 11:42:58 AM »
Close slick and delete vslick.sta.
If the problem doesn't go away, export your entire config and re-import into a brand new config folder.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: Weird behavior...
« Reply #5 on: March 22, 2016, 12:56:31 PM »
Have you checked to see if Ctrl+C accidentally got re-bound?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Weird behavior...
« Reply #6 on: March 24, 2016, 12:51:09 AM »
I've got a repro right now in Slick.
Ctrl=c is not remapped to anything weird.


I've got a number of buffers and two windows.
Two buffers are modified, and are displayed side-by-side.
Cursor is on the left.


  • Ctrl-tab to move to the right pane.
  • Move to line 1.
  • F3 to search for "joe". Finds "Joe"
  • F3 to search againfor "joe". Finds "jOe"
  • Ctrl-tab to move back to the left pane.
  • Ctrl-C to copy the current line
  • OOPS: The left-pane switches to the same buffer as the right. The cursor is at the start of the first match of "joe"
  • Slick does a copy: The clipboard contains the text matched for the 2nd F3. "jOe"


If I move the cursor after step 4 before switching to the left pane - thus deselecting the selected match, then the problem does not repro.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6875
  • Hero Points: 530
Re: Weird behavior...
« Reply #7 on: March 24, 2016, 01:25:59 AM »
Reproduced. We will look into this.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6875
  • Hero Points: 530
Re: Weird behavior...
« Reply #8 on: March 24, 2016, 02:03:51 AM »
Error is in clipbd.e. The or expression in use_copy_to_cursor_instead() needs to be parenthesized. Change as follows:

static boolean use_copy_to_cursor_instead() {
   if ( select_active() && (_select_type()=='LINE' || _select_type()=='CHAR')) {