fix for bug #337785: Haskell intendation segmentation fault

Review Request #119724 - Created Aug. 12, 2014 and submitted

Information
Martin Walch
kate
KDE/4.13
337785
Reviewers
kate

KateHighlighting is expected to always have at least one default KateHlContext (stored in m_contexts), but with highlighting turned off, there is no such context.

As a fix, add a minimalistic KateHlContext to m_contexts in makeNoneContext.

Also fix two typos ("falltrhough", "resolove") in code comments when touching part/syntax/katehighlight.cpp anyway.

REVIEW: 119724
BUG: 337785

Applied patch on KDE/4.13 and KDE/4.14 branch (but not master).

Compiled and ran on KDE/4.13 branch.

Martin Walch
Review request changed

Status: Closed (submitted)

Loading...