diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-01-29 11:43:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 11:43:34 +0100 |
| commit | d9612e3cc713247f8f1e8af10a39fa2c763b588d (patch) | |
| tree | 98cd03c25b6938a0459ea8f541adffc30f94b15c /src/Fl_Text_Display.cxx | |
| parent | fa8799bcef0da392fd344ed019154bd84ccd3e5b (diff) | |
RFC: Different approach to Editor tutorial (see #189) (#883)
Update test/editor code and tutorial (#189, #883)
Different, sequential approach to Editor tutorial
Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index ff4649ee9..c91c98a79 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -448,7 +448,8 @@ void Fl_Text_Display::highlight_data(Fl_Text_Buffer *styleBuffer, mHighlightCBArg = cbArg; mColumnScale = 0; - mStyleBuffer->canUndo(0); + if (mStyleBuffer) + mStyleBuffer->canUndo(0); damage(FL_DAMAGE_EXPOSE); } |
