Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxScintilla 2.01

<< < (5/6) > >>

Jenna:
Seems to work correctly here.

mariocup:
Hi jens,

I build with gcc 4.4.x under windows, wxwidgets 2.8.10 and the latest revesion of scinitlla branch. I will send you my default.conf to reproduce it.

Jenna:
Mario:

is it possible, that you get data from a previous selection you copied to clipboard ?

If I select a rectangle and then accidently press the left mous-button inside the editor with ctrl-key pressed I get multiple selections and ctrl-c does not overwrite the clipboard with the last (in this case empty selection) nor it uses the rectangular selection, and therefore ctrl-v seems to use the last content added to clipboard.

I also can reproduce this behaviour when doing a rectangular select, and move the mouse one line up from the end of the selectionbefore I  release the mouse-button.
Or more clear select a rectangualr from (e.g.) line 2 to 6 (with ctrl-alt pressed) then move the mouse up one line (the selected rectangular is now from line 2 to 5) and the release the mouse-button.
If I now pres ctrl-c nothing seems to be copied to clipboard and the previous data is used for insertion.

Jenna:
On linux I get another issue with rectangular selection and multi-selects.

If I do arectangular selection then move the mouse, pres ctrl and click anywhere, then type ctrl-c and then ctrl-v, scintilla inserts the chars of the rectangualr selections, but without the additional \n's, so it will be inserted as if all characters are in one line.
The other (windows) issue does not exist here (linux).

cgarcia109:
when you do ctrl-c codeblocks first checks if a selection exists through function
cbEditor::HasSelection (as has been commented before this function is not correct with this scintilla version) this function is returning false in these cases and codeblocks never copy nothing to clipboard (nor clipboard is deleted, so old selection remains)
    

--- Quote from: jens on October 07, 2009, 10:38:29 am ---If I do arectangular selection then move the mouse, pres ctrl and click anywhere, then type ctrl-c and then ctrl-v, scintilla inserts the chars of the rectangualr selections, but without the additional \n's, so it will be inserted as if all characters are in one line.

--- End quote ---

scite (windows) does the same, maybe is normal behaviour or, if something is wrong then is wrong too in windows platform
From scintilla doc:

--- Quote ---When discontiguous selections are copied to the clipboard, each selection is added to the clipboard text in order with no delimiting characters. For rectangular selections the document's line end is added after each line's text.

--- End quote ---

--- Quote ---Rectangular selections are handled as multiple selections although the original rectangular range is remembered so that subsequent operations may be handled differently for rectangular selections.

--- End quote ---
But since a rectangular selection is mixed with a non rectangular selection, the selection is handled as a normal selection?


--- Quote from: jens on October 07, 2009, 10:38:29 am ---The other (windows) issue does not exist here (linux).

--- End quote ---

when you do this in linux, text is pasted rectangular? if platform is the same (wxscintilla) behaviour should be the same(??)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version