diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 09:29:45 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 09:29:45 +0100 |
| commit | b84007b0bc5fe286c96c675f5c2c210cccbc0490 (patch) | |
| tree | eba0e84d3dd525e146153a5a318d577a42b519a9 /src/main.cpp | |
| parent | cfbb40b1d08a110a3616a21224c2c13329d12e43 (diff) | |
set clipboard impl
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index dc9bf8f..5857192 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -289,10 +289,8 @@ void _ts_create_text_match_rows() { ImGui::SameLine(); ImGui::Selectable("##nolabel", false, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap); - static bool context_menu_open = false; if (ImGui::IsItemClicked(ImGuiPopupFlags_MouseButtonRight)) { ImGui::OpenPopup(match_nr); - context_menu_open = true; } if (ImGui::BeginPopup(match_nr)) { @@ -307,11 +305,11 @@ void _ts_create_text_match_rows() { #endif if (ImGui::MenuItem("Copy path")) { - ts_platform_copy_to_clipboard(file->file->path); + ImGui::SetClipboardText(file->file->path); } if (ImGui::MenuItem("Copy line")) { - ts_platform_copy_to_clipboard(file->line_info); + ImGui::SetClipboardText(file->line_info); } ImGui::EndPopup(); } |
