From 7f3192f972e834d9cbfdde86a84bcabf56d1e291 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 23 Jan 2012 18:19:52 +1100 Subject: Avoid laying out beyond end of document. Bug #3476637. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index 4fce8bb2d..1e7df0320 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6701,7 +6701,7 @@ void Editor::SetBraceHighlight(Position pos0, Position pos1, int matchStyle) { void Editor::SetAnnotationHeights(int start, int end) { if (vs.annotationVisible) { bool changedHeight = false; - for (int line=start; lineLinesTotal(); line++) { int linesWrapped = 1; if (wrapState != eWrapNone) { AutoSurface surface(this); -- cgit v1.2.3 From 0a5e2c1efadf56995d1cc8ce4601bb8f6b28569b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jan 2012 07:20:43 +1100 Subject: Credit. --- doc/ScintillaHistory.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 11a099606..a641203e0 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -390,6 +390,8 @@ Stefan Weil Rex Conn Ross McKay + + Bruno Barbieri

-- cgit v1.2.3 From aa710ea482ff90616361b9b548f0b868c9505943 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jan 2012 10:21:42 +1100 Subject: Fix a bug where the selection margin was black when starting in wrap mode. --- win32/ScintillaWin.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 35f2044fc..92dd32ffc 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -435,6 +435,9 @@ void ScintillaWin::EnsureRenderTarget() { D2D1::HwndRenderTargetProperties(hw, size), &pRenderTarget); #endif + // Pixmaps were created to be compatible with previous render target so + // need to be recreated. + DropGraphics(false); } #endif } -- cgit v1.2.3 From 4e36fb71bdc86ed5d090dfddfb6e0161e5cf7511 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jan 2012 10:40:19 +1100 Subject: Redraw all of fold margin for fold margin highlight. Bug #3469936. From Marko Njezic. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index 1e7df0320..26032b85f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4643,7 +4643,7 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) { if ((!willRedrawAll) && ((paintState == notPainting) || !PaintContainsMargin())) { if (mh.modificationType & SC_MOD_CHANGEFOLD) { // Fold changes can affect the drawing of following lines so redraw whole margin - RedrawSelMargin(mh.line-1, true); + RedrawSelMargin(highlightDelimiter.isEnabled ? -1 : mh.line-1, true); } else { RedrawSelMargin(mh.line); } -- cgit v1.2.3 From cf4bf9a4e9d5e6d8816b9814b5e9a30c9dbbd555 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jan 2012 11:03:47 +1100 Subject: Mentioned difference between buffered and unbuffered Direct2D. --- doc/ScintillaDoc.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 242f3788d..2e8406ba6 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -79,7 +79,7 @@

Scintilla Documentation

-

Last edited 4/December/2011 NH

+

Last edited 24/January/2012 NH

There is an overview of the internal design of Scintilla.
@@ -3065,6 +3065,8 @@ struct Sci_TextToFind { On most platforms, the only choice is SC_TECHNOLOGY_DEFAULT (0). On Windows Vista or later, SC_TECHNOLOGY_DIRECTWRITE (1) can be chosen to use the Direct2D and DirectWrite APIs for higher quality antialiased drawing.

+

Since Direct2D buffers drawing, Scintilla's buffering should be turned off with + SCI_SETBUFFEREDDRAW(0);. This causes DirectWrite to use better quality antialiasing.

SCI_SETFONTQUALITY(int fontQuality)
SCI_GETFONTQUALITY
-- cgit v1.2.3 From 20b4ee4d3902fa21680b3117ca25bc55280fe24c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jan 2012 20:51:13 +1100 Subject: Updates for 3.0.3. --- doc/ScintillaDownload.html | 10 ++-- doc/ScintillaHistory.html | 116 +++++++++++++++++++++++++++++++++++++++++++++ doc/index.html | 7 +-- version.txt | 2 +- 4 files changed, 126 insertions(+), 9 deletions(-) diff --git a/doc/ScintillaDownload.html b/doc/ScintillaDownload.html index 4d542dcfe..1c1c033ca 100644 --- a/doc/ScintillaDownload.html +++ b/doc/ScintillaDownload.html @@ -25,9 +25,9 @@ @@ -41,7 +41,7 @@ containing very few restrictions.

- Release 3.0.2 + Release 3.0.3

Source Code @@ -49,8 +49,8 @@ The source code package contains all of the source code for Scintilla but no binary executable code and is available in
    -
  • zip format (1200K) commonly used on Windows
  • -
  • tgz format (1080K) commonly used on Linux and compatible operating systems
  • +
  • zip format (1200K) commonly used on Windows
  • +
  • tgz format (1080K) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.

diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index a641203e0..92f9db284 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -403,6 +403,122 @@ Icons Copyright(C) 1998 by Dean S. Jones
+

+ Release 3.0.3 +

+
    +
  • + Released 30 January 2012. +
  • +
  • + Printing works on GTK+ version 2.x as well as 3.x. +
  • +
  • + Lexer added for the AviSynth language. + Feature #3475611. +
  • +
  • + Lexer added for the Take Command / TCC scripting language. + Feature #3462462. +
  • +
  • + CSS lexer gains support for SCSS. + Feature #3268017. +
  • +
  • + CPP lexer fixes problems in the preprocessor structure caused by continuation lines. + Bug #3458508. +
  • +
  • + Errorlist lexer handles column numbers for GCC format diagnostics. + In SciTE, Next Message goes to column where this can be decoded from GCC format diagnostics. + Feature #3453075. +
  • +
  • + HTML folder fixes spurious folds on some tags. + Bug #3459262. +
  • +
  • + Ruby lexer fixes bug where '=' at start of file caused whole file to appear as a comment. + Bug #3452488. +
  • +
  • + SQL folder folds blocks of single line comments. + Feature #3467425. +
  • +
  • + On Windows using Direct2D, defer invalidation of render target until completion of painting to avoid failures. +
  • +
  • + Further support of fractional positioning. Spaces, tabs, and single character tokens can take fractional space + and wrapped lines are positioned taking fractional positions into account. + Bug #3471998. +
  • +
  • + On Windows using Direct2D, fix extra carets appearing. + Bug #3471998. +
  • +
  • + For autocompletion lists Page Up and Down move by the list height instead of by 5 lines. + Bug #3455493. +
  • +
  • + For SCI_LINESCROLLDOWN/UP don't select into virtual space. + Bug #3451681. +
  • +
  • + Fix fold highlight not being fully drawn. + Bug #3469936. +
  • +
  • + Fix selection margin appearing black when starting in wrap mode. +
  • +
  • + Fix crash when changing end of document after adding an annotation. + Bug #3476637. +
  • +
  • + Fix problems with building to make RPMs. + Bug #3476149. +
  • +
  • + Fix problem with building on GTK+ where recent distributions could not find gmodule. + Bug #3469056. +
  • +
  • + Fix problem with installing SciTE on GTK+ due to icon definition in .desktop file including an extension. + Bug #3476117. +
  • +
  • + Fix SciTE bug where new buffers inherited some properties from previously opened file. + Bug #3457060. +
  • +
  • + Fix focus when closing tab in SciTE with middle click. Focus moves to edit pane instead of staying on tab bar. + Bug #3440142. +
  • +
  • + For SciTE on Windows fix bug where Open Selected Filename for URL would append a file extension. + Feature #3459185. +
  • +
  • + For SciTE on Windows fix key handling of control characters in Parameters dialog so normal editing (Ctrl+C, ...) works. + Bug #3459345. +
  • +
  • + Fix SciTE bug where files became read-only after saving. Drop the "*" dirty marker after save completes. + Bug #3467432. +
  • +
  • + For SciTE handling of diffs with "+++" and "---" lines, also handle case where not followed by tab. + Go to correct line for diff "+++" message. + Bug #3467143. + Bug #3467178. +
  • +
  • + SciTE on GTK+ now performs threaded actions even on GTK+ versions before 2.12. +
  • +

Release 3.0.2

diff --git a/doc/index.html b/doc/index.html index 60eb8d949..16de9f3c0 100644 --- a/doc/index.html +++ b/doc/index.html @@ -9,7 +9,7 @@ - +
- + Windows   - + GTK+/Linux