Author Topic: RC2: Can't put cursor where I want in an xml file  (Read 1758 times)

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #15 on: September 28, 2016, 04:37:32 pm »
My font was "default unicode font". I switch to both "Courier New" and "Arial", and I am able to reproduce with both of those fonts.

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #16 on: September 28, 2016, 04:47:58 pm »
You can also reproduce by using this line:

    <test name="Test_PUSCH_206_SOC_1UE_MaxRate_NoUCI_sp_idx_10MHz_2ANT_MONO_CELL_m8">

First put cursor after the final >, then quickly click on the LL in MONO_CELL, then keep moving left about 6 characters and click quickly. Cursor will not be placed where desired if you do this quickly. So only need to move the mouse left.

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #17 on: September 28, 2016, 05:09:53 pm »
I tried this in a c++ source file and don't have the issue. I only have this issue in the xml file I provided (I did not try other xml files).

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 269
Re: RC2: Can't put cursor where I want in an xml file
« Reply #18 on: September 28, 2016, 05:40:06 pm »
Try opening this XML file and changing the mode to Plain Text so there's no color coding.

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #19 on: September 28, 2016, 05:42:58 pm »
Is there a way to change the mode for just this file? If so, how?

Or do I need to change the mode for all xml files in the Tools->Options

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1959
  • Hero Points: 81
Re: RC2: Can't put cursor where I want in an xml file
« Reply #20 on: September 28, 2016, 05:44:50 pm »
Document>Select mode

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #21 on: September 28, 2016, 05:47:59 pm »
The issue goes away if I change the mode to "Plain text"

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2257
  • Hero Points: 284
Re: RC2: Can't put cursor where I want in an xml file
« Reply #22 on: September 28, 2016, 05:49:07 pm »
Try this:  Go to Tools > Options > Appearance > Colors, and change the setting for "Unknown XML Element" to be Normal text instead of Bold.  Do the same for the Block highlighting color.  In some proportional fonts, the text moves around when Block highlighting happens (because of the bold text).  You are probably clicking right before block highlighting kicks in.  Going further with the theory, you might be able to eliminate the problem by turning off Tools > Options > Editing > General > Highlight Matching Blocks.

If this is the problem, I'm not sure there's a fix, other than using a better-behaved Unicode font, such as Consolas.

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #23 on: September 28, 2016, 05:56:51 pm »
That doesn't help.

I did not see "Unknown XML Element", but I do see "unknown tag name", so I changed that to normal from bold.

For block highlighting, I changed "block matching" to normal from bold.

Then I changed Tools > Options > Editing > General > Highlight Matching Blocks to off.

With all these changes, issue is still there.

CyberZombie

  • Community Member
  • Posts: 23
  • Hero Points: 0
Re: RC2: Can't put cursor where I want in an xml file
« Reply #24 on: September 28, 2016, 07:01:59 pm »
I had this problem as well until I created a new config as suggested. Still happens with my ported v15 config, still good with the clean config...

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #25 on: September 28, 2016, 07:08:11 pm »
I thought it may be a config issue.

I just uploaded my config to support.slickedit.com under "Re: RC2: Can't put cursor where I want in an xml file"

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 269
Re: RC2: Can't put cursor where I want in an xml file
« Reply #26 on: September 28, 2016, 07:16:16 pm »
I think we replicated this.

Try turning off view line numbers.

rowbearto

  • Senior Community Member
  • Posts: 815
  • Hero Points: 27
Re: RC2: Can't put cursor where I want in an xml file
« Reply #27 on: September 28, 2016, 07:19:53 pm »
When I turn off line numbers, the issue goes away.

Glad to hear you replicated the issue!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 269
Re: RC2: Can't put cursor where I want in an xml file
« Reply #28 on: September 28, 2016, 09:18:49 pm »
Fixed for RC 4