aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-22 19:30:58 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-22 19:52:47 +0100
commita6c13d77f2f5f504c7b99e66db5f7d52c1368b8a (patch)
treecb952691971c790a2b951dc5cac6068097355bb2 /src/ring.h
parent3af77d3e21cc154a24ecf37b83b217066d296ec9 (diff)
downloadsciteco-a6c13d77f2f5f504c7b99e66db5f7d52c1368b8a.tar.gz
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... ! ]*
Diffstat (limited to 'src/ring.h')
-rw-r--r--src/ring.h5
1 files changed, 5 insertions, 0 deletions
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);