aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-10-03 12:11:57 +0000
committernyamatongwe <devnull@localhost>2000-10-03 12:11:57 +0000
commit6fffdce88450575c94b05f2d71708590bf266254 (patch)
tree65f0b4d35e821158aaa45a350ea20733006eaac5 /src
parent036b89d5335618318ea2ad575d397b5e146ae2d9 (diff)
downloadscintilla-mirror-6fffdce88450575c94b05f2d71708590bf266254.tar.gz
Error status attribute created.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx8
-rw-r--r--src/Editor.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 5bfe8fb25..360e991e9 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -44,6 +44,7 @@ Editor::Editor() {
hasFocus = false;
hideSelection = false;
inOverstrike = false;
+ errorStatus = 0;
bufferedDraw = true;
@@ -4284,6 +4285,13 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) {
case SCI_GETFOCUS:
return hasFocus;
+ case SCI_SETSTATUS:
+ errorStatus = wParam;
+ break;
+
+ case SCI_GETSTATUS:
+ return errorStatus;
+
#ifdef MACRO_SUPPORT
case SCI_STARTRECORD:
recordingMacro = 1;
diff --git a/src/Editor.h b/src/Editor.h
index 38d7ad913..3d1c48f4d 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -65,6 +65,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
bool hasFocus;
bool hideSelection;
bool inOverstrike;
+ int errorStatus;
// In bufferedDraw mode, graphics operations are drawn to a pixmap and then copied to
// the screen. This avoids flashing but is about 30% slower.