aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-11 08:02:59 +0800
committerGitHub <noreply@github.com>2024-07-11 08:02:59 +0800
commit45b7a2c50335e1943a36715101e40eda5a1423f3 (patch)
treea74b324a6edd148f7ee3c6debe142b46e4503ab4 /src/nvim/buffer.h
parentafbe7736a4966f22146d857f246eac01cd080773 (diff)
downloadrneovim-45b7a2c50335e1943a36715101e40eda5a1423f3.tar.gz
rneovim-45b7a2c50335e1943a36715101e40eda5a1423f3.tar.bz2
rneovim-45b7a2c50335e1943a36715101e40eda5a1423f3.zip
vim-patch:9.1.0557: moving in the buffer list doesn't work as documented (#29653)
Problem: moving in the buffer list doesn't work as documented (SenileFelineS) Solution: Skip non-help buffers, when run from normal buffers, else only move from help buffers to the next help buffer (LemonBoy) As explained in the help section for :bnext and :bprev the commands should jump from help buffers to help buffers (and from regular ones to regular ones). fixes: vim/vim#4478 closes: vim/vim#15198 https://github.com/vim/vim/commit/893eeeb44583ca33276e263165b2a6e50fd297d0 Co-authored-by: LemonBoy <thatlemon@gmail.com>
Diffstat (limited to 'src/nvim/buffer.h')
-rw-r--r--src/nvim/buffer.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nvim/buffer.h b/src/nvim/buffer.h
index 4c5023d39a..ffef4eefb6 100644
--- a/src/nvim/buffer.h
+++ b/src/nvim/buffer.h
@@ -39,7 +39,7 @@ enum bln_values {
BLN_NOCURWIN = 128, ///< buffer is not associated with curwin
};
-/// Values for action argument for do_buffer()
+/// Values for action argument for do_buffer_ext() and close_buffer()
enum dobuf_action_values {
DOBUF_GOTO = 0, ///< go to specified buffer
DOBUF_SPLIT = 1, ///< split window and go to specified buffer
@@ -48,7 +48,7 @@ enum dobuf_action_values {
DOBUF_WIPE = 4, ///< delete specified buffer(s) really
};
-/// Values for start argument for do_buffer()
+/// Values for start argument for do_buffer_ext()
enum dobuf_start_values {
DOBUF_CURRENT = 0, ///< "count" buffer from current buffer
DOBUF_FIRST = 1, ///< "count" buffer from first buffer
@@ -56,6 +56,13 @@ enum dobuf_start_values {
DOBUF_MOD = 3, ///< "count" mod. buffer from current buffer
};
+/// Values for flags argument of do_buffer_ext()
+enum dobuf_flags_value {
+ DOBUF_FORCEIT = 1, ///< :cmd!
+ DOBUF_SKIPHELP = 4, ///< skip or keep help buffers depending on b_help of the
+ ///< starting buffer
+};
+
/// flags for buf_freeall()
enum bfa_values {
BFA_DEL = 1, ///< buffer is going to be deleted