summaryrefslogtreecommitdiff
path: root/src/normal.hh
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2023-03-09 21:21:29 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2023-03-11 16:21:57 +0100
commit1990a764e3d2ffa77931068f876cd49f76bd43f9 (patch)
tree050b5ef8a116ced85ccb9476cb3c4b0ece311293 /src/normal.hh
parentb2cf74bb4a8286c5a191c54e947c0b2c9bb7cf96 (diff)
Make linewise bracketed paste match P behavior
This is experimental. Testing will reveal if this is the desired behavior.
Diffstat (limited to 'src/normal.hh')
-rw-r--r--src/normal.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/normal.hh b/src/normal.hh
index ad0f81be..080c3d01 100644
--- a/src/normal.hh
+++ b/src/normal.hh
@@ -10,6 +10,7 @@
namespace Kakoune
{
+class Buffer;
class Context;
struct no_selections_remaining : runtime_error
@@ -40,6 +41,15 @@ struct KeyInfo
String build_autoinfo_for_mapping(const Context& context, KeymapMode mode,
ConstArrayView<KeyInfo> built_ins);
+enum class PasteMode
+{
+ Append,
+ Insert,
+ Replace
+};
+
+BufferCoord paste_pos(Buffer& buffer, BufferCoord min, BufferCoord max, PasteMode mode, bool linewise);
+
}
#endif // normal_hh_INCLUDED