diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 1b7f022535..a9020fbf13 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -379,7 +379,8 @@ void LyXFunc::processKeySym(KeySymbol const & keysym, KeyModifier state) lyx_view_->updateCompletion(false, false); } - lyx_view_->restartCursor(); + if (lyx_view_) + lyx_view_->restartCursor(); }