From 0d82cdcb2cb889efe2a6370309593cda64528cc2 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sat, 11 Jul 2020 09:12:43 +1000 Subject: Backport: Feature [feature-requests:1369]. Represent DEL control character 0x7f with DEL. Backport of changeset 8395:b0355e996f10. --- doc/ScintillaHistory.html | 4 ++++ src/Editor.cxx | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index b24933a1f..a3dea460e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -591,6 +591,10 @@ Feature #1355.
  • + Display DEL control character as visible "DEL" block like other control characters. + Feature #1369. +
  • +
  • Allow caret width to be up to 20 pixels. Feature #1361.
  • diff --git a/src/Editor.cxx b/src/Editor.cxx index 4bcebaf8d..104f6d500 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -217,6 +217,7 @@ void Editor::SetRepresentations() { const char c[2] = { static_cast(j), 0 }; reprs.SetRepresentation(c, reps[j]); } + reprs.SetRepresentation("\x7f", "DEL"); // C1 control set // As well as Unicode mode, ISO-8859-1 should use these -- cgit v1.2.3