diff -uNr mc-4.8.10/src/editor/editcmd.c mc-4.8.10.drop-selection/src/editor/editcmd.c
old
|
new
|
|
91 | 91 | /* queries on a save */ |
92 | 92 | int edit_confirm_save = 1; |
93 | 93 | |
| 94 | /* whether we need to drop selection on copy to buffer */ |
| 95 | int option_drop_selection_on_copy = 0; |
| 96 | |
94 | 97 | /*** file scope macro definitions ****************************************************************/ |
95 | 98 | |
96 | 99 | #define space_width 1 |
… |
… |
|
2896 | 2899 | /* try use external clipboard utility */ |
2897 | 2900 | mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_file_to_ext_clip", NULL); |
2898 | 2901 | |
| 2902 | if (option_drop_selection_on_copy) |
| 2903 | edit_mark_cmd (edit, TRUE); |
| 2904 | |
2899 | 2905 | return TRUE; |
2900 | 2906 | } |
2901 | 2907 | |
diff -uNr mc-4.8.10/src/editor/edit.h mc-4.8.10.drop-selection/src/editor/edit.h
old
|
new
|
|
39 | 39 | extern int option_backspace_through_tabs; |
40 | 40 | extern int option_fake_half_tabs; |
41 | 41 | extern int option_persistent_selections; |
| 42 | extern int option_drop_selection_on_copy; |
42 | 43 | extern int option_cursor_beyond_eol; |
43 | 44 | extern gboolean option_cursor_after_inserted_block; |
44 | 45 | extern int option_line_state; |
diff -uNr mc-4.8.10/src/setup.c mc-4.8.10.drop-selection/src/setup.c
old
|
new
|
|
349 | 349 | { "editor_edit_confirm_save", &edit_confirm_save }, |
350 | 350 | { "editor_syntax_highlighting", &option_syntax_highlighting }, |
351 | 351 | { "editor_persistent_selections", &option_persistent_selections }, |
| 352 | { "editor_drop_selection_on_copy", &option_drop_selection_on_copy }, |
352 | 353 | { "editor_cursor_beyond_eol", &option_cursor_beyond_eol }, |
353 | 354 | { "editor_cursor_after_inserted_block", &option_cursor_after_inserted_block }, |
354 | 355 | { "editor_visible_tabs", &visible_tabs }, |