Editor functions. More...
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | EnterFunction |
A NeoMutt function. More... | |
Typedefs | |
typedef int(* | enter_function_t) (struct EnterWindowData *wdata, int op) |
Functions | |
int | enter_function_dispatcher (struct MuttWindow *win, int op) |
Perform an Enter function - Implements function_dispatcher_t -. | |
bool | self_insert (struct EnterWindowData *wdata, int ch) |
Insert a normal character. | |
void | replace_part (struct EnterState *es, size_t from, const char *buf) |
Search and replace on a buffer. | |
Editor functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file functions.h.
typedef int(* enter_function_t) (struct EnterWindowData *wdata, int op) |
Definition at line 42 of file functions.h.
bool self_insert | ( | struct EnterWindowData * | wdata, |
int | ch | ||
) |
Insert a normal character.
wdata | Enter window data |
ch | Raw keypress |
true | If done (enter pressed) |
Definition at line 89 of file window.c.
void replace_part | ( | struct EnterState * | es, |
size_t | from, | ||
const char * | buf | ||
) |
Search and replace on a buffer.
es | Current state of the input buffer |
from | Starting point for the replacement |
buf | Replacement string |
Definition at line 132 of file functions.c.