mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Don't switch encodings if in search modus
This commit is contained in:
parent
29265ce702
commit
6747b3fe97
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user