From 04d22e6fcd1366d84a5c79c955a82c1827482b08 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 4 Apr 2002 03:10:20 +0000 Subject: Improved caret movement in read-only mode by handling more cases where text is inserted and be removing handling of cases where text is deleted as these are handled automatically in the modification listener. --- src/Document.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 61fe33fce..9743583fe 100644 --- a/src/Document.h +++ b/src/Document.h @@ -163,7 +163,7 @@ public: bool InsertString(int position, const char *s, int insertLength); void ChangeChar(int pos, char ch); void DelChar(int pos); - int DelCharBack(int pos); + void DelCharBack(int pos); char CharAt(int position) { return cb.CharAt(position); } void GetCharRange(char *buffer, int position, int lengthRetrieve) { @@ -233,7 +233,6 @@ private: void NotifySavePoint(bool atSavePoint); void NotifyModified(DocModification mh); - int DelCharBackMove(int pos, int len); int IndentSize() { return indentInChars ? indentInChars : tabInChars; } }; -- cgit v1.2.3