From a37daa872ce648f201d26d0d6c3deff2bb54c354 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 22 Nov 2014 18:04:35 +0100 Subject: added EJ command: return runtime properties * main motivation is to have a way of getting the number of buffers in the ring. "EJ" or "1EJ" will do that. This simplifies macros that will have to iterate all the buffers. They no longer have to close the existing buffers to do that. * "0EJ" will get the current user interface. This is useful to select a different color scheme in the startup profile depending on the UI, for instance. --- src/ring.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ring.h') diff --git a/src/ring.h b/src/ring.h index b9e9ced..5dc3a37 100644 --- a/src/ring.h +++ b/src/ring.h @@ -186,6 +186,8 @@ public: return TAILQ_LAST(&head, Head); } + tecoInt get_id(Buffer *buffer); + Buffer *find(const gchar *filename); Buffer *find(tecoInt id); -- cgit v1.2.3