#4626 Moving document to another window loses manually set language

All
open
nobody
None
5
2013-12-29
2013-12-29
No

When moving a document from one window to another, the manually set language is lost.

To reproduce

  1. Create a file with an non-standard extension, e.g. test.wxyz.
  2. Put some source code in it, e.g. HTML.
    Note that the code is not syntax highlighted.
  3. Use the Language menu to manually set the language to HTML.
    Note that the code is syntax highlighted.
  4. Drag the document to another Notepad++ window.

The result

The code is no longer syntax highlighted. It has lost its manually set language.

The expected result

The code should keep its syntax highlighting and language.

Discussion