view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 1995:7f7c6b87f1b1

Fix segfault with SIGWINCH This patch should fix issue #73: When the program is built with "--enable-sigwinch" a segmentation fault may occur if the size of a window is changed before a password is entered. https://bitbucket.org/McKael/mcabber-crew/issue/73/
author Mikael Berthe <mikael@lilotux.net>
date Sat, 16 Apr 2011 09:25:21 +0200
parents c5b2789443c3
children a63814f2e4c8
line wrap: on
line source

"
" Save this file in your ~/.vim/ftdetect/ folder

function MCabber_log_ftdetect()
    if getline(1) =~ '^\u. \d\{8}T\d\d:\d\d:\d\dZ \d\{3} '
      setlocal filetype=mcabber_log
    endif
endfunction

autocmd BufRead */*mcabber/histo/* call MCabber_log_ftdetect()