diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index e6151d4a3..829883883 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -606,6 +606,7 @@ void Fl_Text_Display::insert_position( int newPos ) { */ void Fl_Text_Display::show_cursor(int b) { mCursorOn = b; + if (!buffer()) return; redisplay_range(buffer()->prev_char_clipped(mCursorPos), buffer()->next_char(mCursorPos)); } |
