From 3e9413d6152db40e1cf31ecc8f2dd057451c998f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 31 Oct 2022 01:52:42 +0100 Subject: [PATCH] Restore Scintilla header files Restore Sci_Position.h & ScintillaStructures.h (ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12327#issuecomment-1296020276) And add R styles. --- PowerEditor/installer/themes/DansLeRuSH-Dark.xml | 5 +++++ PowerEditor/installer/themes/DarkModeDefault.xml | 5 +++++ PowerEditor/installer/themes/HotFudgeSundae.xml | 6 ++++++ PowerEditor/installer/themes/MossyLawn.xml | 6 ++++++ PowerEditor/installer/themes/Navajo.xml | 6 ++++++ PowerEditor/installer/themes/Solarized-light.xml | 6 ++++++ PowerEditor/installer/themes/Solarized.xml | 6 ++++++ PowerEditor/installer/themes/Zenburn.xml | 5 +++++ PowerEditor/installer/themes/khaki.xml | 6 ++++++ PowerEditor/src/stylers.model.xml | 7 ++++++- scintilla/include/Sci_Position.h | 2 +- scintilla/include/ScintillaStructures.h | 2 +- 12 files changed, 59 insertions(+), 3 deletions(-) diff --git a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml index 458b1e7b4..5ba62933c 100644 --- a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml +++ b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml @@ -688,6 +688,11 @@ Installation : Copy this file to "%APPDATA%\Notepad++\themes" and in a portable + + + + + diff --git a/PowerEditor/installer/themes/DarkModeDefault.xml b/PowerEditor/installer/themes/DarkModeDefault.xml index acfa7351f..3f0e14b61 100644 --- a/PowerEditor/installer/themes/DarkModeDefault.xml +++ b/PowerEditor/installer/themes/DarkModeDefault.xml @@ -998,6 +998,11 @@ License: GPL2 + + + + + diff --git a/PowerEditor/installer/themes/HotFudgeSundae.xml b/PowerEditor/installer/themes/HotFudgeSundae.xml index d11cbc1a9..7b6947b95 100644 --- a/PowerEditor/installer/themes/HotFudgeSundae.xml +++ b/PowerEditor/installer/themes/HotFudgeSundae.xml @@ -708,6 +708,12 @@ Installation: + + + + + + diff --git a/PowerEditor/installer/themes/MossyLawn.xml b/PowerEditor/installer/themes/MossyLawn.xml index 1c3794e84..d0609db98 100644 --- a/PowerEditor/installer/themes/MossyLawn.xml +++ b/PowerEditor/installer/themes/MossyLawn.xml @@ -709,6 +709,12 @@ Installation: + + + + + + diff --git a/PowerEditor/installer/themes/Navajo.xml b/PowerEditor/installer/themes/Navajo.xml index b246a1462..d76c32bc7 100644 --- a/PowerEditor/installer/themes/Navajo.xml +++ b/PowerEditor/installer/themes/Navajo.xml @@ -706,6 +706,12 @@ Installation: + + + + + + diff --git a/PowerEditor/installer/themes/Solarized-light.xml b/PowerEditor/installer/themes/Solarized-light.xml index d6e73bfce..807ed8079 100644 --- a/PowerEditor/installer/themes/Solarized-light.xml +++ b/PowerEditor/installer/themes/Solarized-light.xml @@ -717,6 +717,12 @@ Installation: + + + + + + diff --git a/PowerEditor/installer/themes/Solarized.xml b/PowerEditor/installer/themes/Solarized.xml index d62de3ac5..e154d9823 100644 --- a/PowerEditor/installer/themes/Solarized.xml +++ b/PowerEditor/installer/themes/Solarized.xml @@ -717,6 +717,12 @@ Installation: + + + + + + diff --git a/PowerEditor/installer/themes/Zenburn.xml b/PowerEditor/installer/themes/Zenburn.xml index 42b6b5604..c42466711 100644 --- a/PowerEditor/installer/themes/Zenburn.xml +++ b/PowerEditor/installer/themes/Zenburn.xml @@ -998,6 +998,11 @@ License: GPL2 + + + + + diff --git a/PowerEditor/installer/themes/khaki.xml b/PowerEditor/installer/themes/khaki.xml index 073882ebe..a18f70780 100644 --- a/PowerEditor/installer/themes/khaki.xml +++ b/PowerEditor/installer/themes/khaki.xml @@ -706,6 +706,12 @@ Installation: + + + + + + diff --git a/PowerEditor/src/stylers.model.xml b/PowerEditor/src/stylers.model.xml index 8ddc45c8b..1a5f1ce91 100644 --- a/PowerEditor/src/stylers.model.xml +++ b/PowerEditor/src/stylers.model.xml @@ -985,8 +985,13 @@ - + + + + + + diff --git a/scintilla/include/Sci_Position.h b/scintilla/include/Sci_Position.h index 88ad5132b..abd0f3408 100644 --- a/scintilla/include/Sci_Position.h +++ b/scintilla/include/Sci_Position.h @@ -18,7 +18,7 @@ typedef ptrdiff_t Sci_Position; typedef size_t Sci_PositionU; // For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE -typedef intptr_t Sci_PositionCR; +typedef long Sci_PositionCR; #ifdef _WIN32 #define SCI_METHOD __stdcall diff --git a/scintilla/include/ScintillaStructures.h b/scintilla/include/ScintillaStructures.h index 4586f86b5..4d13a4367 100644 --- a/scintilla/include/ScintillaStructures.h +++ b/scintilla/include/ScintillaStructures.h @@ -12,7 +12,7 @@ namespace Scintilla { -using PositionCR = intptr_t; +using PositionCR = long; struct CharacterRange { PositionCR cpMin;