rgieseke / textredux

Text-based interfaces for Textadept
http://rgieseke.github.io/textredux/
Other
59 stars 11 forks source link

attempt to call field 'new' (a nil value) #3

Closed amarsahinovic closed 11 years ago

amarsahinovic commented 11 years ago

I just installed Textadept 6.5, and added this to my init.lua:

_M.textredux = require 'textredux' keys.co = _M.textredux.fs.open_file

When I press Ctrl+O, I get this message:

/home/amar/.textadept/modules/textredux/core/buffer.lua:405: attempt to call field 'new' (a nil value)

rgieseke commented 11 years ago

The latest Textredux includes changes for the API changes introduced in Textadept 6.6 beta, for example the renaming of new_buffer to buffer.new. You could update (I use 6.6.beta daily) or try checking out Textredux at https://github.com/rgieseke/textredux/commit/af452c181896ad0839265e23aa1e9d5a50f48142

amarsahinovic commented 11 years ago

Thanks, got it working now.

rgieseke commented 11 years ago

Great!