SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jporkkahtc on March 21, 2016, 11:41:32 PM

Title: Weird behavior...
Post by: jporkkahtc 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?
Title: Re: Weird behavior...
Post by: Clark on March 21, 2016, 11:54:58 PM
Are you using a notebook?
Title: Re: Weird behavior...
Post by: jporkkahtc on March 22, 2016, 01:32:47 AM
nope - desktop
Title: Re: Weird behavior...
Post by: Clark on March 22, 2016, 02:02:47 AM
Desktop keyboards are better. Notebook windows keyboards are often a joke. I had to ask.
Title: Re: Weird behavior...
Post by: Graeme 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.
Title: Re: Weird behavior...
Post by: Dan on March 22, 2016, 12:56:31 PM
Have you checked to see if Ctrl+C accidentally got re-bound?
Title: Re: Weird behavior...
Post by: jporkkahtc 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.




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.

Title: Re: Weird behavior...
Post by: Clark on March 24, 2016, 01:25:59 AM
Reproduced. We will look into this.
Title: Re: Weird behavior...
Post by: Clark 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')) {