From 14e1232647833c269a292b703fe27718ab27b5f1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 05:34:56 +0200 Subject: Merging debian version 3.4-1. Signed-off-by: Daniel Baumann --- debian/patches/upstream-0f6227f46b.diff | 42 --------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 debian/patches/upstream-0f6227f46b.diff (limited to 'debian/patches/upstream-0f6227f46b.diff') diff --git a/debian/patches/upstream-0f6227f46b.diff b/debian/patches/upstream-0f6227f46b.diff deleted file mode 100644 index c062e60..0000000 --- a/debian/patches/upstream-0f6227f46b.diff +++ /dev/null @@ -1,42 +0,0 @@ -commit 0f6227f46b1d33476ef448682a2ba0b0290e6d9b -Author: Nicholas Marriott -Date: Thu Jun 2 20:41:21 2022 +0000 - - When deleting or renaming a buffer and a buffer name is specified, - complain if the buffer doesn't exist instead of silently deleting or - renaming the most recent buffer. GitHub issue 3205. - -diff --git a/cmd-set-buffer.c b/cmd-set-buffer.c -index 9112683fc0..c9ffe5edad 100644 ---- a/cmd-set-buffer.c -+++ b/cmd-set-buffer.c -@@ -69,8 +69,13 @@ cmd_set_buffer_exec(struct cmd *self, struct cmdq_item *item) - pb = paste_get_name(bufname); - - if (cmd_get_entry(self) == &cmd_delete_buffer_entry) { -- if (pb == NULL) -+ if (pb == NULL) { -+ if (bufname != NULL) { -+ cmdq_error(item, "unknown buffer: %s", bufname); -+ return (CMD_RETURN_ERROR); -+ } - pb = paste_get_top(&bufname); -+ } - if (pb == NULL) { - cmdq_error(item, "no buffer"); - return (CMD_RETURN_ERROR); -@@ -80,8 +85,13 @@ cmd_set_buffer_exec(struct cmd *self, struct cmdq_item *item) - } - - if (args_has(args, 'n')) { -- if (pb == NULL) -+ if (pb == NULL) { -+ if (bufname != NULL) { -+ cmdq_error(item, "unknown buffer: %s", bufname); -+ return (CMD_RETURN_ERROR); -+ } - pb = paste_get_top(&bufname); -+ } - if (pb == NULL) { - cmdq_error(item, "no buffer"); - return (CMD_RETURN_ERROR); -- cgit v1.2.3