Snow:

> 1) Horizontal scrollbar on long lines: I've added some code to the
> Paint() method so it works out the longest line on screen while it is
> painting and changes the size of the scrollbar if necessary. This should
> work on Windows and GTK, but is only tested on Windows.

   This should not occur inside the paint code as too much is already
occurring there. The width could be disovered here and then reflected
in the scroll bar during idle or timer processing. Scrollbar updating
can be slow and has been the cause of noticeable performance issues in
the past.

> 2) Find is very slow if the codepage isn't UTF8: This is because
> MovePositionOutsideChar() is very slow when it thinks the codepage might
> have multi-byte chars, which is whenever the codepage isn't UTF8. I've
> created a change so that the codepage is queried (via Windows) for the
> maximum char width. If this is 1 then there is nothing to do (CR/LF is
> done separately).

   The code page should only be set when multi-byte characters are
possible. That is why the field is called "dbcsCodePage".

> This should compile on Windows and GTK, but only
> Windows queries the codepage (GTK continues to assumes 2 bytes).

   On GTK+, code pages such as EUC* may use up to 3 bytes per character.

> 3) Rectangular pasting:
>
> a) If the clipboard contains a single line and there is a rectangular
> selection (possibly zero-width), then the clipboard line will be copied
> onto each of the selected lines.

   I'm not sure about this. Possibly it could be an option to preserve
compatibility with other editors.

> b) If there is a rectangular selection then pasting will be rectangular
> whether the clipboard content was copied rectangular or not; but only if
> the number of lines selected matches the number in the clipboard
> (excepting case (a) above).
>
> c) If the clipboard contains a rectangular copy, then pasting is not
> allowed if there is a stream-selection.

   b and c appears to me to be decreases in functionality and do not
match other editors such as Visual Studio.

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to