Fix replace not working for huge documents
Replace was not working because m_currentMatches kept increasing whilst replace never happened. This led to huge amounts of memory allocations. On my system Kate crashed after 30 seconds with SIGKILL.
Replace was not working because m_currentMatches kept increasing whilst replace never happened. This led to huge amounts of memory allocations. On my system Kate crashed after 30 seconds with SIGKILL.