From d015eff4aa0ca294d007cb61683b5fa815ce0640 Mon Sep 17 00:00:00 2001 From: Sri Senthil Balaji J <50240805+SymphonySimper@users.noreply.github.com> Date: Mon, 15 Sep 2025 20:48:49 +0530 Subject: [PATCH] fix(helix-view/clipboard): use serde generated name for Win32Yank (#14455) --- book/src/editor.md | 2 +- helix-view/src/clipboard.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/editor.md b/book/src/editor.md index ee3aab6ac..a9ea219b3 100644 --- a/book/src/editor.md +++ b/book/src/editor.md @@ -61,7 +61,7 @@ | `indent-heuristic` | How the indentation for a newly inserted line is computed: `simple` just copies the indentation level from the previous line, `tree-sitter` computes the indentation based on the syntax tree and `hybrid` combines both approaches. If the chosen heuristic is not available, a different one will be used as a fallback (the fallback order being `hybrid` -> `tree-sitter` -> `simple`). | `hybrid` | `jump-label-alphabet` | The characters that are used to generate two character jump labels. Characters at the start of the alphabet are used first. | `"abcdefghijklmnopqrstuvwxyz"` | `end-of-line-diagnostics` | Minimum severity of diagnostics to render at the end of the line. Set to `disable` to disable entirely. Refer to the setting about `inline-diagnostics` for more details | `"hint"` -| `clipboard-provider` | Which API to use for clipboard interaction. One of `pasteboard` (MacOS), `wayland`, `x-clip`, `x-sel`, `win-32-yank`, `termux`, `tmux`, `windows`, `termcode`, `none`, or a custom command set. | Platform and environment specific. | +| `clipboard-provider` | Which API to use for clipboard interaction. One of `pasteboard` (MacOS), `wayland`, `x-clip`, `x-sel`, `win32-yank`, `termux`, `tmux`, `windows`, `termcode`, `none`, or a custom command set. | Platform and environment specific. | | `editor-config` | Whether to read settings from [EditorConfig](https://editorconfig.org) files | `true` | | `rainbow-brackets` | Whether to render rainbow colors for matching brackets. Requires tree-sitter `rainbows.scm` queries for the language. | `false` | | `kitty-keyboard-protocol` | Whether to enable Kitty Keyboard Protocol. Can be `enabled`, `disabled` or `auto` | `auto` | diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs index c9e2a8e03..2641d98f3 100644 --- a/helix-view/src/clipboard.rs +++ b/helix-view/src/clipboard.rs @@ -193,7 +193,7 @@ mod external { Self::Wayland => builtin_name("wayland", &WL_CLIPBOARD), Self::XClip => builtin_name("x-clip", &XCLIP), Self::XSel => builtin_name("x-sel", &XSEL), - Self::Win32Yank => builtin_name("win-32-yank", &WIN32), + Self::Win32Yank => builtin_name("win32-yank", &WIN32), Self::Tmux => builtin_name("tmux", &TMUX), Self::Termux => builtin_name("termux", &TERMUX), #[cfg(windows)]