From 1990a764e3d2ffa77931068f876cd49f76bd43f9 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 9 Mar 2023 21:21:29 +0100 Subject: Make linewise bracketed paste match P behavior This is experimental. Testing will reveal if this is the desired behavior. --- src/normal.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/normal.hh') 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 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 -- cgit v1.2.3