diff --git a/uppsrc/ide/idefile.cpp b/uppsrc/ide/idefile.cpp index f98350b6f..4fade77ef 100644 --- a/uppsrc/ide/idefile.cpp +++ b/uppsrc/ide/idefile.cpp @@ -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);