Skip to content

v0.8.3

Compare
Choose a tag to compare
@SidOfc SidOfc released this 21 May 13:54
· 352 commits to master since this release

What's Changed

  • BREAKING: refactor buffer.create by @SidOfc in #23
  • BREAKING: make buffer.process_insert_move an inaccessible local function
  • BREAKING: make buffer.create_confirm an inaccessible local function
  • BREAKING: make buffer.create_cancel an inaccessible local function
  • BREAKING: make buffer.create_reset an inaccessible local function
  • BREAKING: make buffer.set_lines no longer accepts {strict} as an argument (:h carbon-buffer-set-lines)
  • Add: util.unmap (:h carbon-util-unmap)
  • Add: util.clear_autocmd (:h carbon-util-clear-autocmd)
  • Add: util.last_index_of (:h carbon-util-last-index-of)

Description

The main idea behind this refactor was to completely eliminate the need to use a
module-level local table variable (data) to store create-mode state variables.
This has now been properly encapsulated in a local context which is only accessible
to relevant functions.

Additionally, the related buffer.create_* methods have been replaced by local
functions since they no longer rely on module-level locals but rather receive a
ctx object which now carries the create-mode state variables.

Finally, in Carbon buffers, <cr> and <esc> mappings and the CursorMovedI
autocmd are now only bound while create-mode is active and automatically unbound
when cancelling / confirming creation.

Full Changelog: v0.8.2...v0.8.3