aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.h
diff options
context:
space:
mode:
authorGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-15 15:07:22 +0100
committerGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-15 15:07:22 +0100
commitc8d5131a42b8117987d2a278d69edb21a7cf9383 (patch)
tree9b4d363e2567d98656a2a80b22281aca731ded0a /reader.h
parentfc21bb6eda40045b28dbd865346cad80aa3d6274 (diff)
Add experimental support for selection and visual mode
Diffstat (limited to 'reader.h')
-rw-r--r--reader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/reader.h b/reader.h
index b954c1be..7e1cadf6 100644
--- a/reader.h
+++ b/reader.h
@@ -114,6 +114,13 @@ void reader_set_buffer(const wcstring &b, size_t p);
*/
size_t reader_get_cursor_pos();
+
+/**
+ Get the current selection range in the command line.
+ Returns false if there is no active selection, true otherwise.
+*/
+bool reader_get_selection_pos(size_t &start, size_t &stop);
+
/**
Return the value of the interrupted flag, which is set by the sigint
handler, and clear it if it was set.