internal void FileSaved(IntPtr id) { var buff = GetBufferInfo(id); if (string.Equals(buff.Path, nps.IniFilePath, StringComparison.OrdinalIgnoreCase)) { nps.ReadSettings(); nps.ApplySettings(); } if (!nps.EnableAutoDetect) { return; } RemoveFileFromCache(id); IntPtr activeBuf = GetActiveBuffer(); if (activeBuf == id) { GuessIndentation(id); } }
internal static void AutodetectEnableMenu() { nps.EnableAutoDetect = !nps.EnableAutoDetect; nps.ApplySettings(); nps.WriteSettings(); }