Skip to content

Commit

Permalink
Merge branch '4562_mcedit_macros_paste'
Browse files Browse the repository at this point in the history
* 4562_mcedit_macros_paste:
  Ticket #4562: mcedit: don't apply macros to the pasted text.
  • Loading branch information
aborodin committed Jul 22, 2024
2 parents 9f4e88f + e9258fc commit 45c28d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editor/editwidget.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Written by:
Paul Sheer, 1996, 1997
Andrew Borodin <[email protected]> 2012-2022
Andrew Borodin <[email protected]> 2012-2024
This file is part of the Midnight Commander.
Expand Down Expand Up @@ -42,7 +42,7 @@
#include "lib/global.h"

#include "lib/tty/tty.h" /* LINES, COLS */
#include "lib/tty/key.h" /* is_idle() */
#include "lib/tty/key.h" /* is_idle(), bracketed_pasting_in_progress */
#include "lib/tty/color.h" /* tty_setcolor() */
#include "lib/skin.h"
#include "lib/fileloc.h" /* EDIT_HOME_DIR */
Expand Down Expand Up @@ -959,7 +959,7 @@ edit_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data
cb_ret_t ret = MSG_NOT_HANDLED;

/* The user may override the access-keys for the menu bar. */
if (macro_index == -1 && edit_execute_macro (e, parm))
if (macro_index == -1 && !bracketed_pasting_in_progress && edit_execute_macro (e, parm))
{
edit_update_screen (e);
ret = MSG_HANDLED;
Expand Down

0 comments on commit 45c28d9

Please sign in to comment.