neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

preload.lua (473B)


      1 -- Modules loaded here will NOT be cleared and reloaded by Busted.
      2 -- Busted started doing this to help provide more isolation.  See issue #62
      3 -- for more information about this.
      4 local t = require('test.testutil')
      5 require('test.functional.testnvim')()
      6 require('test.functional.ui.screen')
      7 
      8 local has_ffi, ffi = pcall(require, 'ffi')
      9 if t.is_os('win') and has_ffi then
     10  ffi.cdef [[
     11  typedef int errno_t;
     12  errno_t _set_fmode(int mode);
     13  ]]
     14  ffi.C._set_fmode(0x8000)
     15 end