fix a case clipboard contents are empty
fix :edit!
fix isTopFrame()
merge some conflicts