aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2026-02-28fixup: update the line layout cache when changing the tab draw modesciteco-rel-5-5-8Robin Haberkorn1-1/+1
This is important when caching the line layout, so that changing the tab draw mode to SCTD_CONTROLCHAR will actually change the identations. This is already in upstream Scintilla as part of 7621fda67d13735836c6f050d1eec8c691a68292. d4fa2014808092ddfaa0c97c1755af87a182be6b will not be merged upstream and should be refactored when rebasing on the next Scintilla version to keep down the number of touched lines.
2025-11-12added SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR)Robin Haberkorn5-5/+19
Allows rendering tabs (ASCII 9) with character representations like any other control character. This will not actually change the tab's indentation, so you may need to call SCI_SETTABWIDTH and SCI_SETTABMINIMUMWIDTH as well.
2025-11-09added SC_LINE_END_TYPE_NONE: allows ignoring all line endsRobin Haberkorn7-41/+62
This can help when using Scintilla views as command line widgets. It can also help when using Scintilla to edit binary files as you don't want to attach special meaning to CR and LF.
2025-11-09disable automatic scrolling and choosing the X that caret sticks toRobin Haberkorn1-1/+7
* SciTECO needs to avoid automatic scrolling as an optimization. While this works partially by avoiding certain messages like SCI_GOTOPOS (in favor of SCI_SETEMPTYSELECTION), there aren't alternatives for all messages that scroll. For instance SCI_UNDO will always call EnsureCaretVisible(). Also, even if we could avoid all scrolling messages, there is no guarantee that will not suddenly and unexpectedly break in the future. * Instead, every scrolling is now disabled except for an explicit SCI_SCROLLCARET. SciTECO can therefore use the more intuitive messages like SCI_GOTOPOS. * SetLastXChosen() (choosing the X that caret sticks to) has been found to be a major slow down during UNDO and serves no purpose on SciTECO anyway - we have to implement such an algorithm at the SciTECO language level. We therefore simply disable SetLastXChosen().
2025-11-09commented out Editor::SetRepresentations()Robin Haberkorn1-1/+1
* This sets the default key representations on every SCI_SETDOCPOINTER which is very inefficient considering the way that SciTECO uses the Q-Register view. Furthermore it meant, we had to reset the representations to their SciTECO versions again after every SCI_SETDOCPOINTER. * This patch only does not cause problems because we initialize the representations anyway for every Scintilla view. This patch is not meant to be upstreamed!
2025-11-05Updates for version 5.5.8.Neil9-20/+20
2025-11-04Feature [feature-requests:#1569]. Update to Unicode 16.Neil3-21/+121
2025-11-04Standardize parameter name for SCI_AUTOCSETIMAGESCALE for change #9752.Neil1-1/+1
2025-11-03Support ptrdiff_t if it has the same storage size as int, but does *not* ↵Robin Haberkorn5-2/+14
alias it * This is the case e.g. on NetBSD 10 for ARMv6 where Sci::Position == ptrdiff_t == long int, but obviously for other platforms as well, where it causes "invalid conversion" and "undefined symbol" errors. Scintilla was testing for aliasability by comparing the storage size with sizeof() or PTRDIFF_MAX == INT_MAX at the preprocessor level. This was fundamentally flawed. * In LineVector<T>::InsertLines() we are now using the C++17 construct std::is_convertible_v<From*,To*> instead. * We need RunStyles<ptrdiff_t> as well on the affected platforms. This is impossible to test for in a constant expression that can be used with the preprocessor. Also, it's not possible to conditionally instantiate templates. We tried to instantiate RunStyles for all scalar types that could be behind ptrdiff_t, but it was causing warnings on MSVC. Implicitly instantiating RunStyles would be possible, but is not desired. Therefore as a workaround, you can now define the PTRDIFF_DOESNT_ALIAS_INT macro when invoking the build system, to force instantiating RunStyles<ptrdiff_t>. When writing portable applications, you may have to use a compile-time check for checking aliasability of ptrdiff_t and int in order to define PTRDIFF_DOESNT_ALIAS_INT.
2025-10-29Feature [feature-requests:#1567]. Remove unnecessary InvalidateStyleRedraw call.YX Hao1-1/+0
2025-10-29Feature [feature-requests:#1567]. Fix bug when indenting rectangular selection.Zufu Liu3-0/+30
2025-10-29Feature [feature-requests:#1567]. Fix running tests in Visual C++ debugger.Neil1-3/+5
Set optional SCINTILLA_BIN environment variable to point to build directory. It's unclear just what the problem was but Python 3.13 would crash out in window handling code when run inside the debugger and using its HINSTANCE. Changing to a global class and using None for the HINSTANCE made it work. There are various other minor problems here like using c_int (32-bit) for the window procedure return instead of c_ssize_t (64-bit) but they are not worth destabilizing the code further. Example Scintilla.vcxproj.user for debugging a test script with a particular Python interpreter. <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LocalDebuggerCommand>C:\Users\Neil\AppData\Local\Programs\Python\Python313\python.exe</LocalDebuggerCommand> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <LocalDebuggerCommandArguments>G:\u\hg\scintilla\test\simpleTests.py</LocalDebuggerCommandArguments> <LocalDebuggerWorkingDirectory>G:\u\hg\scintilla\test\</LocalDebuggerWorkingDirectory> <LocalDebuggerEnvironment>SCINTILLA_BIN=G:\\u\\hg\\scintilla\\win32\\x64\\Debug</LocalDebuggerEnvironment> </PropertyGroup> </Project>
2025-10-13Fix Cocoa bidirectional mode crash when scrolled before start of document.Neil Hodgson2-1/+4
2025-10-12Bug [#2487]. Reduce work performed for SetSelectionSerialized.Zufu Liu1-1/+1
2025-10-12Suppress #error diagnostics in files generated by Qt.Zufu Liu1-1/+1
2025-10-12Bug [#2487]. When undo restores selection, ensure selection redrawn correctly.Zufu Liu2-0/+5
2025-09-29Update suppressions for cppcheck 2.18.Neil1-6/+0
2025-09-29Bug [#2486]. Eliminate special macOS default calltip colorJiří Techet2-6/+4
There doesn't seem to be any editor using this color these days and the result looks alien on the platform. Using grey on white looks much more native for the platform.
2025-07-03Feature [feature-requests:#1563]. Move main range in selection serialized form.Zufu Liu5-41/+54
Avoid processing characters multiple times by relying on from_chars munching digit characters instead of searching for delimiters.
2025-06-26Fix some typos and indentation.Neil4-11/+11
2025-06-22Stop making .BSC file as not needed and shows warnings.Neil1-1/+1
2025-06-17Feature [feature-requests:#1557]. Fix finding sub-line of position inZufu Liu1-10/+8
bidirectional mode which is used for accessibility on macOS with VoiceOver. Avoid out-of-bounds access.
2025-06-17Feature [feature-requests:#1557]. Shorten expression.Zufu Liu1-1/+1
2025-06-12Squash some warnings, mostly by defining constants symbolically.Neil3-22/+26
2025-06-12Bug [#2482]. Force list colours to be opaque.Sven Ritter2-2/+16
Enlarge bitmap to avoid visible blank background between items.
2025-06-08Added tag rel-5-5-7 for changeset ba0e2f317940Neil1-0/+1
2025-06-08Updated release date.rel-5-5-7Neil2-3/+3
2025-06-03Updates for version 5.5.7.Neil9-20/+20
2025-06-01Add SCI_SCROLLVERTICAL API.Neil15-4/+84
2025-05-29Recreate all pixmaps if any null as this may better handle cases where someNeil3-10/+6
allocations succeed and others fail.
2025-05-29Minor validity fixes.Neil1-3/+3
2025-05-28Bug [#2481]. Refresh pixmaps later inside Paint so non-null when dereferenced inNeil2-3/+6
for validity check.
2025-05-25Feature [feature-requests:#1557]. Simplify LineLayout deallocation.Zufu Liu2-25/+3
2025-05-24Remove line end space.Zufu Liu8-8/+8
2025-05-24Change the line wrap memory growth strategy to handle huge documents better.Zufu Liu1-2/+2
Clarify code a little.
2025-05-20Feature [feature-requests:#1557]. Simplify line wrapping.Zufu Liu1-15/+7
2025-05-18Modify wrapping fix to be more efficient.Zufu Liu2-7/+4
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16373
2025-05-16Feature [feature-requests:#1488]. Update IME cursor position inside retrievejohnsonj2-0/+11
surrounding to better position candidate window.
2025-05-16Fix wrapping bug for UTF-8 where \r\n could wrap between the characters.Neil2-0/+10
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16373
2025-05-16Silence warning with intermediate constant.Neil1-1/+2
2025-05-15Remove else after return when that clarifies code.Neil1-104/+90
2025-05-13Remove directories no longer included in Scintilla and document Qt.Neil1-2/+2
2025-05-12Add SCI_AUTOC{G,S}ETIMAGESCALE and implement for Qt and GTK.orbitalquark15-14/+97
2025-05-12Fix building for Qt on Linux. Was broken by change 9738 (0327fa0f000b).Neil Hodgson1-1/+1
2025-05-11Feature [feature-requests:#1476]. Fix IME delete surrounding when tentativejohnsonj2-0/+8
composition active.
2025-05-10Change CallTipPosStart to a 'get' to match CallTipSetPosStart.Mitchell Foral1-1/+1
2025-05-06Feature [feature-requests:#1476]. Simplify code for retrieve surrounding text.johnsonj1-17/+2
2025-05-05Bug [#2416]. Reset vertical scroll bar synchronously in SCI_SETDOCPOINTER to fixNeil Hodgson2-0/+7
bug where scroll position not restored in non-wrap mode.
2025-05-03Use noexcept, emplace_back, avoid a cast, and simplify code.Neil2-9/+10
2025-05-03Remove else after return when that clarifies code.Neil1-61/+42