From a6c13d77f2f5f504c7b99e66db5f7d52c1368b8a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 22 Nov 2014 19:30:58 +0100 Subject: allow setting the "*" register as an alternative to nEB this is more consistent with SciTECO's idea of abstract registers and allows the currend buffer to be saved on the Q-Register stack. This allows the idiom: [* ! ...change current buffer... ! ]* --- src/ring.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ring.h') diff --git a/src/ring.h b/src/ring.h index 5dc3a37..7aa4f27 100644 --- a/src/ring.h +++ b/src/ring.h @@ -187,6 +187,11 @@ public: } tecoInt get_id(Buffer *buffer); + inline tecoInt + get_id(void) + { + return get_id(current); + } Buffer *find(const gchar *filename); Buffer *find(tecoInt id); -- cgit v1.2.3