fortrangoingonforty/fortsh / dd2b33c

Browse files

mirror selection cut/copy into system clipboard

Authored by espadonne
SHA
dd2b33c5ac002f590accdf8c9721f951103dbd79
Parents
998f55b
Tree
0432de8

1 changed file

StatusFile+-
M src/io/readline.f90 4 0
src/io/readline.f90modified
@@ -732,6 +732,10 @@ contains
732732
     call state_buffer_get(state, temp_buf)
733733
     call state_kill_buffer_set(state, temp_buf(sel_start+1:sel_end))
734734
     state%kill_length = span
735
+
736
+    ! Sprint 5: also write to system clipboard (no-op if no tool detected).
737
+    call clipboard_copy(temp_buf(sel_start+1:sel_end), span)
738
+
735739
     call debug_selection_log('copy-to-kill', state)
736740
   end subroutine copy_selection_to_kill_buffer
737741