diff options
| author | Robin Gagnon <me@reobin.dev> | 2026-06-01 09:45:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-01 17:45:55 +0300 |
| commit | ab649adfded619a0461e36e2eb3929dd5f9e7567 (patch) | |
| tree | 438d1f20ebe73c309c78bb5822effb768476971f /src/ui | |
| parent | bd1d2f7cc5fece3fa91eadb55fb7e0a9f3331780 (diff) | |
fix: preserve linewise copy selection (#389)
refs #360
Co-authored-by: Can Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/menus.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/menus.rs b/src/ui/menus.rs index e974d524..42b4ec70 100644 --- a/src/ui/menus.rs +++ b/src/ui/menus.rs @@ -70,7 +70,10 @@ pub(super) fn render_copy_mode_overlay(app: &AppState, frame: &mut Frame, area: .bg(app.palette.accent) .add_modifier(Modifier::BOLD); - let select = if app.copy_mode.is_some_and(|copy_mode| copy_mode.selecting) { + let select = if app + .copy_mode + .is_some_and(|copy_mode| copy_mode.selection.is_some()) + { "selecting" } else { "select" |
