Skip to content

Commit ca0df6c

Browse files
committed
Sync Scintilla tab indent changes.
1 parent e8f0d89 commit ca0df6c

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

scintilla/include/SciLexer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Scintilla source code edit control */
22
/** @file SciLexer.h
3-
** Interface to the added lexer functions in the SciLexer version of the edit control.
3+
** Interface to the lexer functions in Lexilla.
4+
** File called SciLexer.h ro retain compatibility with client code.
45
**/
56
/* Copyright 1998-2002 by Neil Hodgson <[email protected]>
67
* The License.txt file describes the conditions under which this software may be distributed. */
@@ -9,7 +10,7 @@
910
* file which contains any comments about the definitions. HFacerLexer.py does the generation. */
1011
#pragma once
1112

12-
/* SciLexer features - not in standard Scintilla */
13+
/* Lexilla features */
1314

1415
/* ++Autogenerated -- start of section automatically generated from SciLexer.iface */
1516
#define STYLE_LINK 33

scintilla/src/CallTip.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,9 @@ size_t Chunk::Length() const noexcept {
3939

4040
namespace {
4141

42-
#ifdef __APPLE__
43-
// Archaic macOS colours for the default: black on light yellow
44-
constexpr ColourRGBA colourTextAndArrow(black);
45-
constexpr ColourRGBA colourBackground(0xff, 0xff, 0xc6);
46-
#else
4742
// Grey on white
4843
constexpr ColourRGBA colourTextAndArrow(0x80, 0x80, 0x80);
4944
constexpr ColourRGBA colourBackground(white);
50-
#endif
5145

5246
constexpr ColourRGBA silver(0xc0, 0xc0, 0xc0);
5347

scintilla/src/Editor.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4169,6 +4169,12 @@ int Editor::KeyDownWithModifiers(Keys key, KeyMod modifiers, bool *consumed) {
41694169

41704170
void Editor::Indent(bool forwards, bool lineIndent) {
41714171
const UndoGroup ug(pdoc);
4172+
// Avoid problems with recalculating rectangular range multiple times by temporarily
4173+
// treating rectangular selection as multiple stream selection.
4174+
const Selection::SelTypes selType = sel.selType;
4175+
if (sel.IsRectangular()) {
4176+
sel.selType = Selection::SelTypes::stream;
4177+
}
41724178
for (size_t r = 0; r < sel.Count(); r++) {
41734179
const Sci::Line lineOfAnchor =
41744180
pdoc->SciLineFromPosition(sel.Range(r).anchor.Position());
@@ -4243,6 +4249,8 @@ void Editor::Indent(bool forwards, bool lineIndent) {
42434249
}
42444250
}
42454251
}
4252+
sel.selType = selType; // Restore rectangular mode
4253+
ThinRectangularRange();
42464254
ContainerNeedsUpdate(Update::Selection);
42474255
}
42484256

@@ -8962,7 +8970,7 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
89628970
return DefWndProc(iMessage, wParam, lParam);
89638971
}
89648972

8965-
// If there was a change that needs its selection saved and it wasn't explicity saved
8973+
// If there was a change that needs its selection saved and it wasn't explicitly saved
89668974
// then do that here.
89678975
RememberCurrentSelectionForRedoOntoStack();
89688976

version.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ git clone https://github.com/XhmikosR/notepad2-mod.git
55
Scintilla (upstream)
66
hg clone http://hg.code.sf.net/p/scintilla/code scintilla
77
5.5.7
8-
2025-06-12 9771:b24f00cb53d6
8+
2025-10-29 9785:4200efc4b867
99

1010
Lexilla (upstream)
1111
git clone https://github.com/ScintillaOrg/lexilla.git
1212
5.4.5
13-
2025-06-12 1666f9bff3c13d428914adb449b97cfce8d58f16
13+
2025-10-31 c5e7646f40bbd670815206b021aba8955a2e229e
1414

1515
SciTE (upstream)
1616
hg clone http://hg.code.sf.net/p/scintilla/scite
1717
5.5.7
18-
2025-06-12 6492:c188f560d9de
18+
2025-10-12 6503:fa143cf46f84
1919

2020
Boost regex 7.0.1
2121
1.88 https://github.com/boostorg/regex

0 commit comments

Comments
 (0)