mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 06:53:39 +08:00
4f619c966b
Reduces lint errors from 10 to 9 (-10%). Line count from 242 to 175 (-28%). Another step in resolving issue #2902.
32 lines
675 B
C
32 lines
675 B
C
// Prototypes for the killring.
|
|
//
|
|
// Works like the killring in emacs and readline. The killring is cut and paste whith a memory of
|
|
// previous cuts.
|
|
#ifndef FISH_KILL_H
|
|
#define FISH_KILL_H
|
|
|
|
#include "common.h"
|
|
|
|
/// Replace the specified string in the killring.
|
|
void kill_replace(const wcstring &old, const wcstring &newv);
|
|
|
|
/// Add a string to the top of the killring.
|
|
void kill_add(const wcstring &str);
|
|
|
|
/// Rotate the killring.
|
|
const wchar_t *kill_yank_rotate();
|
|
|
|
/// Paste from the killring.
|
|
const wchar_t *kill_yank();
|
|
|
|
/// Sanity check.
|
|
void kill_sanity_check();
|
|
|
|
/// Initialize the killring.
|
|
void kill_init();
|
|
|
|
/// Destroy the killring.
|
|
void kill_destroy();
|
|
|
|
#endif
|