macro.c (157184) | macro.c (165670) |
---|---|
1/* macro.c -- keyboard macros for readline. */ 2 3/* Copyright (C) 1994 Free Software Foundation, Inc. 4 5 This file is part of the GNU Readline Library, a library for 6 reading lines of text with interactive input and history editing. 7 8 The GNU Readline Library is free software; you can redistribute it --- 99 unchanged lines hidden (view full) --- 108 if (rl_executing_macro[executing_macro_index] == 0) 109 { 110 _rl_pop_executing_macro (); 111 return (_rl_next_macro_key ()); 112 } 113 114#if defined (READLINE_CALLBACKS) 115 c = rl_executing_macro[executing_macro_index++]; | 1/* macro.c -- keyboard macros for readline. */ 2 3/* Copyright (C) 1994 Free Software Foundation, Inc. 4 5 This file is part of the GNU Readline Library, a library for 6 reading lines of text with interactive input and history editing. 7 8 The GNU Readline Library is free software; you can redistribute it --- 99 unchanged lines hidden (view full) --- 108 if (rl_executing_macro[executing_macro_index] == 0) 109 { 110 _rl_pop_executing_macro (); 111 return (_rl_next_macro_key ()); 112 } 113 114#if defined (READLINE_CALLBACKS) 115 c = rl_executing_macro[executing_macro_index++]; |
116 if (RL_ISSTATE (RL_STATE_CALLBACK) && RL_ISSTATE (RL_STATE_READCMD) && rl_executing_macro[executing_macro_index] == 0) | 116 if (RL_ISSTATE (RL_STATE_CALLBACK) && RL_ISSTATE (RL_STATE_READCMD|RL_STATE_MOREINPUT) && rl_executing_macro[executing_macro_index] == 0) |
117 _rl_pop_executing_macro (); 118 return c; 119#else 120 return (rl_executing_macro[executing_macro_index++]); 121#endif 122} 123 124/* Save the currently executing macro on a stack of saved macros. */ --- 147 unchanged lines hidden --- | 117 _rl_pop_executing_macro (); 118 return c; 119#else 120 return (rl_executing_macro[executing_macro_index++]); 121#endif 122} 123 124/* Save the currently executing macro on a stack of saved macros. */ --- 147 unchanged lines hidden --- |