diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2022-03-18 21:55:42 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2022-03-18 21:55:42 -0400 |
commit | 092d5984e16f2d8f844dc88a417ed6f9defdf42c (patch) | |
tree | 1ddb8e897e06f9c85f85429e03e355c50ae298a6 /core | |
parent | 962e738d191bc526e43eb06943280cb24ef5f82c (diff) |
Added `move_buffer()` function and made tabs rearrangeable via drag and drop.
Diffstat (limited to 'core')
-rw-r--r-- | core/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/init.lua b/core/init.lua index 4290c901..56b7519f 100644 --- a/core/init.lua +++ b/core/init.lua @@ -134,6 +134,14 @@ local view -- The functions below are Lua C functions. --- +-- Moves the buffer at index *from* to index *to*, shifting other buffers as necessary. +-- @param from Index of the buffer to move. +-- @param to Index to move the buffer to. +-- @class function +-- @name move_buffer +local move_buffer + +--- -- Emits a `QUIT` event, and unless any handler returns `false`, quits Textadept. -- @see events.QUIT -- @class function |