diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-02-25 13:40:19 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-02-25 13:41:00 +0000 |
| commit | 00bde4ef483b11cdea59e2d693c2afee2e1576f0 (patch) | |
| tree | 4bd916948c5a61ce9ec323681795a37c64a3c467 /src/buffer_utils.hh | |
| parent | 46f37a6050e02a958d1cafbd7da42500df88e458 (diff) | |
Respect columns when copying selection, not just bytes
Diffstat (limited to 'src/buffer_utils.hh')
| -rw-r--r-- | src/buffer_utils.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh index 80bd3112..591ea455 100644 --- a/src/buffer_utils.hh +++ b/src/buffer_utils.hh @@ -27,6 +27,9 @@ inline CharCount char_length(const Buffer& buffer, const Selection& range) CharCount get_column(const Buffer& buffer, CharCount tabstop, ByteCoord coord); +ByteCount get_byte_to_column(const Buffer& buffer, CharCount tabstop, + CharCoord coord); + Buffer* create_fifo_buffer(String name, int fd, bool scroll = false); Buffer* create_buffer_from_data(StringView data, StringView name, |
