I'm about to repeat the tests now there's a new version of the Forum Software. First the "standard test":
1. Here's some Black Text
2. Here's some Black Text
3. Here's some Green Text
4. Here's some Green Text
5. Here's some Red Text
6. Here's some Red Text
7. Here's some Blue Text
8. Here's some Blue Text
Test 1: Highlight lines 1 and 2 above, and paste them here:
1. Here's some Black Text
2. Here's some Black Text
3. Here's some Green Text
What's line 3 doing above? I went to cut/paste TWO lines and it copied THREE.
This bug has been there for over 2 1/2 years and it still doesn't work.
Something simpler. Start with this:
1. Here's some Black Text
2. Here's some Green Text
3. Here's some Red Text
Click before the "2", hold down "shift", hit down-arrow to highlight line "2" prior to copy/paste. I see the following (where I'm illustrating the "highlight" by showing as Underline):
1. Here's some Black Text
2. Here's some Green Text
3. Here's some Red Text
Now with the "shift" key still down, hit the LEFT arrow, expecting to see the highlight move back one character to:
1. Here's some Black Text
2. Here's some Green Text
3. Here's some Red Text
What I actually get is:
1. Here's some Black Text
2. Here's some Green Text
3. Here's some Red Text
Changing the Selection using shift-arrow doesn't work properly. If I keep hitting the left-arrow it keeps reselecting the SECOND line, unless I let it auto-repeat, and then it gets it right.
That's probably related to copying one-too-many lines.
This is with Firefox 37.0.2 under Ubuntu Linux.
Let's see if I can use this software to paste example code (not working for years).
int flexcan_kbaud_set( int device, int kbaud )
{
// DEBUG( 1, "" );
struct can_hw *p = &hw[device];
int rc = 0;
uint32_t nTimeUs;
int unfreeze = FALSE;
if (!(p->regs->canmcr & MCF_CAN_CANMCR_HALT)) //Flexcan is not frozen
{
nTimeUs = clock_us();
Wow! That actually worked without going crazy. That's a first. I've now switched to the "Advanced Editor" so I can change the lines to Courier.
Select the above code, cut, paste, change to Courier New and Indent:
int flexcan_kbaud_set( int device, int kbaud )
{
// DEBUG( 1, "" );
struct can_hw *p = &hw[device];
int rc = 0;
uint32_t nTimeUs;
int unfreeze = FALSE;
if (!(p->regs->canmcr & MCF_CAN_CANMCR_HALT)) //Flexcan is not frozen
{
nTimeUs = clock_us();
That pasted one-too-many lines, but worked better than it has before. I might actually be able to "Paste Code" at last.
Let's try the ">> Syntax Highlighting C++" way of displaying code:
int flexcan_kbaud_set( int device, int kbaud )
{
// DEBUG( 1, "" );
struct can_hw *p = &hw[device];
int rc = 0;
uint32_t nTimeUs;
int unfreeze = FALSE;
if (!(p->regs->canmcr & MCF_CAN_CANMCR_HALT)) //Flexcan is not frozen
{
nTimeUs = clock_us();
It missed pasting the last line, or at least displaying it. I can only see lines 1 to 11. That's a bug I've noted previously, but it might come back after I "Add Reply". It also has the above littered with "Spelling Error Red Wiggles". They're also completely misaligned with the words they're objecting to. Code shouldn't be spell-checked anyway.
Save this post so I can see what happens next.
Back after the save. I can now see the missing lines in the above code, and instead of showing lines 1-11 (as it did on the first edit) it is now showing 1-13. It also only shows the red wiggles in edit mode, and in this "re-edit" they're now showing under the correct words at least.
Tom