mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #770 from p00f/expose-selectOutput
expose selectOutput via ctrl+triple click
This commit is contained in:
@ -1818,7 +1818,10 @@ pub fn mouseButtonCallback(
|
||||
|
||||
// Triple click, select the line under our mouse
|
||||
3 => {
|
||||
const sel_ = self.io.terminal.screen.selectLine(self.mouse.left_click_point);
|
||||
const sel_ = if (mods.ctrl)
|
||||
self.io.terminal.screen.selectOutput(self.mouse.left_click_point)
|
||||
else
|
||||
self.io.terminal.screen.selectLine(self.mouse.left_click_point);
|
||||
if (sel_) |sel| {
|
||||
self.setSelection(sel);
|
||||
try self.queueRender();
|
||||
|
Reference in New Issue
Block a user