EditAsHex does not reload if already active #1402

git-svn-id: svn://ultimatepp.org/upp/trunk@9669 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-04-03 12:08:22 +00:00
parent 61d6d85d8e
commit eeec0a86a1

View file

@ -582,8 +582,10 @@ void Ide::TriggerAssistSync()
void Ide::EditAsHex()
{
String path = editfile;
editastext.RemoveKey(editfile);
editashex.FindPut(editfile);
if(editashex.Find(path) >= 0)
return;
editastext.RemoveKey(path);
editashex.FindPut(path);
byte cs = editor.GetCharset();
FlushFile();
EditFile0(path, cs);