summaryrefslogtreecommitdiff
path: root/src/dged/window.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-03-26 10:59:06 +0100
committerAlbert Cervin <albert@acervin.com>2024-03-26 10:59:06 +0100
commit1b888cc723792ec0e49c7e5aaa78c3c5486a95b9 (patch)
treeda0b4f6fcdf394b155938472a0ca0d100effb2ef /src/dged/window.h
parent5b3234f34fd081a3fe81c95bd55f4bfc853568a5 (diff)
downloaddged-1b888cc723792ec0e49c7e5aaa78c3c5486a95b9.tar.gz
dged-1b888cc723792ec0e49c7e5aaa78c3c5486a95b9.tar.xz
dged-1b888cc723792ec0e49c7e5aaa78c3c5486a95b9.zip
Implement kill-buffer command
Can be killed with the command `kill-buffer`, the shortcut `C-x k` or from the buffer menu.
Diffstat (limited to 'src/dged/window.h')
-rw-r--r--src/dged/window.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dged/window.h b/src/dged/window.h
index 3841475..e1b1d25 100644
--- a/src/dged/window.h
+++ b/src/dged/window.h
@@ -11,6 +11,7 @@ struct display;
struct keymap;
struct commands;
struct buffer;
+struct buffers;
struct window;
struct windows;
@@ -21,7 +22,8 @@ struct window_position {
};
void windows_init(uint32_t height, uint32_t width,
- struct buffer *initial_buffer, struct buffer *minibuffer);
+ struct buffer *initial_buffer, struct buffer *minibuffer,
+ struct buffers *buffers);
void windows_destroy();
void windows_resize(uint32_t height, uint32_t width);
@@ -44,8 +46,8 @@ void window_set_buffer_e(struct window *window, struct buffer *buffer,
bool modeline, bool line_numbers);
struct buffer *window_buffer(struct window *window);
struct buffer_view *window_buffer_view(struct window *window);
-struct buffer *window_prev_buffer(struct window *window);
-bool window_has_prev_buffer(struct window *window);
+struct buffer_view *window_prev_buffer_view(struct window *window);
+bool window_has_prev_buffer_view(struct window *window);
uint32_t window_width(const struct window *window);
uint32_t window_height(const struct window *window);
struct window_position window_position(const struct window *window);