From 6995bb435c5fc87bfbe014864cf2a5904ea5fa45 Mon Sep 17 00:00:00 2001 From: Barry Downes Date: Sat, 5 Aug 2023 15:37:08 +1000 Subject: [PATCH] Fix: text -> self.text in clone method. --- comfy/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/parse.py b/comfy/parse.py index 5be1ff771..e3b6546cf 100644 --- a/comfy/parse.py +++ b/comfy/parse.py @@ -66,7 +66,7 @@ class Cursor: def clone(self): # python's immutable strings should mean the actual string data for text is not copied - clone = Cursor(text) + clone = Cursor(self.text, skip_space=self.skip_space, consume=self.consume, space=self.space) # pos is the main purpose of the clone clone.pos = self.pos # this other stuff, we're just cloning for completeness