Don't switch encodings if in search modus

This commit is contained in:
Kornel Benko 2019-04-17 07:40:31 +02:00
parent 29265ce702
commit 6747b3fe97

View File

@ -1656,7 +1656,8 @@ pair<bool, int> switchEncoding(odocstream & os, BufferParams const & bparams,
if (oldEnc.name() == newEnc.name()
|| oldEnc.package() == Encoding::japanese
|| oldEnc.package() == Encoding::none
|| newEnc.package() == Encoding::none)
|| newEnc.package() == Encoding::none
|| runparams.for_search)
return make_pair(false, 0);
// FIXME We ignore encoding switches from/to encodings that do
// neither support the inputenc package nor the CJK package here.