Skip to content

Commit c1b4380

Browse files
committed
make samples work with scintilla 4.2.0
1 parent f066e00 commit c1b4380

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/Samples/ColumnLexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def is_lexer_doc(self):
119119
''' Check if the current document is of interest
120120
by reading the class name property.
121121
'''
122-
return True if editor.getPropertyInt(self.__class__.__name__) == 1 else False
122+
return True if editor.getPropertyInt(self.__class__.__name__, 0) == 1 else False
123123

124124

125125
def styleneeded_callback(self,args):

scripts/Samples/EnhancedPythonLexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def set_lexer_doc(self,bool_value):
111111

112112

113113
def on_bufferactivated(self,args):
114-
if (self.get_lexer_name() == self.lexer_name) and (editor.getPropertyInt(self.__class__.__name__) != -1):
114+
if (self.get_lexer_name() == self.lexer_name) and (editor.getPropertyInt(self.__class__.__name__, 0) != -1):
115115
self.__is_lexer_doc = True
116116
else:
117117
self.__is_lexer_doc = False

scripts/Samples/LogfileLexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def is_lexer_doc(self):
121121
''' Check if the current document is of interest
122122
by reading the class name property.
123123
'''
124-
return True if editor.getPropertyInt(self.__class__.__name__) == 1 else False
124+
return True if editor.getPropertyInt(self.__class__.__name__, 0) == 1 else False
125125

126126

127127
def styleneeded_callback(self,args):

0 commit comments

Comments
 (0)