|
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: Sun Aug 26, 2007 8:22 pm
[2.01] deleting strings |
If you highlight a string and press the delete key half the time it deletes properly, and the other half it forgets to chomp the first character.
I'm not sure how to reproduce this reliably, but it's a common occurance. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Aug 26, 2007 8:24 pm |
This is in the settings editor right?
Lets say you have the following line in the script of your alias.
#addkey %eval($var) keys %eval($var_List)
If you highlight it and hit delete you will still have the # left over. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: Sun Aug 26, 2007 9:57 pm |
that's exactly what I'd get, yes. good example Arminas
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Aug 27, 2007 6:51 pm |
OK, I cannot reproduce this at all. Can anyone else help figure this out? It might not be anything I can control since CMUD is just using the Scintilla editor in the SciLexer.Dll file for the script editor.
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Aug 27, 2007 7:24 pm |
I'll see if I can find one of my examples that was doing it when I get home this evening.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: Wed Aug 29, 2007 10:13 pm |
it also happens when you copy and paste... sometimes it doesn't grab the first character...
this only happens about 1 out of about 5 times you try to edit. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Thu Aug 30, 2007 12:56 am |
Ok, I have reproduced this conclusively.
When you highlight a block of text you can highlight a section of a line all the way to the beginning of the line but have the cursor one letter from the beginning.
This causes the character to the left of the cursor to not be removed.
Lets say the colored text is selected and the | is the cursor. If the cursor is all the way to the left then the text is deleted properly but if the cursor is one from the left the first character is left behind.
a|a
Leaves
a
If you are quickly highlighting text to delete it, or cut/copy it you don't expect the cursor to be off one character. Even if you did you would expect the entire highlighted portion to be affected.
To reproduce this easily you can do this.
Open one of the following setting types alias, trigger, macro, or a button.
type "aa" without the quotes into the script box.
Hold down the shift key and press the left arrow key once. This highlights both letters but does not place the cursor to the left of the first a.
Now hit delete or cut the line.
Note that these are the only settings types that have this issue. I was also unable to reproduce this in the normal editor window. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Thu Aug 30, 2007 4:27 am |
I will add my support to part of this. I thought it was just me but I've had multiple times with copy/paste where I'd select what I wanted to copy and it wouldn't paste the first character.
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Thu Aug 30, 2007 6:03 am |
This started happening to me with the latest iteration of my settings. I'm not sure what makes this different from my old settings that would cause this to happen, but add my vote to the bug list.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Aug 30, 2007 5:37 pm |
OK, I have reproduced the problem using your method above. I'm not sure what I can do about it, since this looks like a bug in the Scintilla editor control. I'm already using their latest version release. The 1.34 version of CMUD used an older version, but the older version had many bugs in the Lua syntax highlighting, so I was forced to upgrade it.
I don't currently have the ability to rebuild Scintilla myself, so I'm afraid this is going to have to go onto the lower priority bug list for a while until I can find someone who can look at the Scintilla source code and try to fix this for me. That's the downside with using Open Source components like this. |
|
|
|
|
|