示例#1
0
        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);
            }
        }
示例#2
0
 internal static void AutodetectEnableMenu()
 {
     nps.EnableAutoDetect = !nps.EnableAutoDetect;
     nps.ApplySettings();
     nps.WriteSettings();
 }