remote nc
[nedit-bw.git] / detectlangmode.patch
blob27df808267e0d2e556bfd3c6bf1fbf70513da435
1 Subject: detect language mode while typing
3 ---
5 source/window.c | 6 ++++++
6 1 file changed, 6 insertions(+)
8 diff --quilt old/source/window.c new/source/window.c
9 --- old/source/window.c
10 +++ new/source/window.c
11 @@ -2475,6 +2475,12 @@ static void modifiedCB(int pos, int nIns
12 /* Check if external changes have been made to file and warn user */
13 CheckForChangesToFile(window);
15 + /* Determine language mode for "Untitled" files while typing */
16 + if (window->languageMode == PLAIN_LANGUAGE_MODE
17 + && window->filenameSet == False) {
18 + DetermineLanguageMode(window, True);
19 + }
21 ModifiedHook(window);