From af41fc54964c59f8e8118101bf8a2ee4262b90be Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 26 Jul 2002 00:46:05 +0000 Subject: Patch from John Ehresman to return false from styling operations when reentering causes styling to not be performed. --- src/Document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 34c49a5a6..82931207c 100644 --- a/src/Document.h +++ b/src/Document.h @@ -202,8 +202,8 @@ public: void SetWordChars(unsigned char *chars); void SetStylingBits(int bits); void StartStyling(int position, char mask); - void SetStyleFor(int length, char style); - void SetStyles(int length, char *styles); + bool SetStyleFor(int length, char style); + bool SetStyles(int length, char *styles); int GetEndStyled() { return endStyled; } bool EnsureStyledTo(int pos); int GetStyleClock() { return styleClock; } -- cgit v1.2.3