File: test_modified-quit.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (28 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

set noswapfile
set nomore

nnoremap q :qall!<cr>

if empty($INMAKE) | finish | endif

let g:test = 0
augroup Testing
  autocmd!
  autocmd User VimtexEventQuit let g:test += 1
augroup END

silent edit included.tex

" 'hidden' is not set, so quitting should not wipe any states
normal! GOtest
try
  silent quit
catch /E37/
endtry
call assert_equal(g:test, 0)

call vimtex#test#finished()