3 source/window.c | 5 +++++
4 1 files changed, 5 insertions(+)
6 diff --quilt old/source/window.c new/source/window.c
7 --- old/source/window.c
8 +++ new/source/window.c
9 @@ -2448,10 +2448,15 @@ static void modifiedCB(int pos, int nIns
10 UpdateStatsLine(window);
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);
20 MacroApplyHook(window, "modified_hook", 0, NULL, NULL);
23 static void focusCB(Widget w, WindowInfo *window, XtPointer callData)