aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-18 23:17:18 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-22 01:18:05 +0100
commit753dacacbcc2d45d35a044bfe2512fc4cd564b5c (patch)
tree0836f965a306b33449d60c4c7b579eab06f6bc2b /src/ring.cpp
parente0a47e8fcd592585030384faf6d42a2bf74f43ad (diff)
downloadsciteco-753dacacbcc2d45d35a044bfe2512fc4cd564b5c.tar.gz
clean up QRegister vs. Buffer redundancies using TECODocument class
* also encapsulates data properly (previously there were many public attributes to avoid permission issues) * new class also cares about saving/and restoring scroll state. now, buffer/q-reg edits and temporary accesses do not reset the scroll state anymore.
Diffstat (limited to 'src/ring.cpp')
-rw-r--r--src/ring.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index 8654686..138714f 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -233,7 +233,7 @@ Ring::edit(gint64 id)
if (!buffer)
return false;
- current_save_dot();
+ current_doc_update();
QRegisters::current = NULL;
current = buffer;
@@ -249,7 +249,7 @@ Ring::edit(const gchar *filename)
{
Buffer *buffer = find(filename);
- current_save_dot();
+ current_doc_update();
QRegisters::current = NULL;
if (buffer) {
@@ -488,7 +488,7 @@ Ring::close(void)
{
Buffer *buffer = current;
- buffer->dot = interface.ssm(SCI_GETCURRENTPOS);
+ buffer->update();
close(buffer);
current = buffer->next() ? : buffer->prev();
/* transfer responsibility to UndoToken object */