Lines Matching refs:line
131 line, col = get_line_col(start)
132 res = self.search_backward(text, prog, line, col, wrap, ok)
138 line, col = get_line_col(start)
139 res = self.search_forward(text, prog, line, col, wrap, ok)
142 def search_forward(self, text, prog, line, col, wrap, ok=0):
144 startline = line
145 chars = text.get("%d.0" % line, "%d.0" % (line+1))
150 return line, m
151 line = line + 1
152 if wrapped and line > startline:
156 chars = text.get("%d.0" % line, "%d.0" % (line+1))
160 line = 1
164 def search_backward(self, text, prog, line, col, wrap, ok=0):
166 startline = line
167 chars = text.get("%d.0" % line, "%d.0" % (line+1))
172 return line, m
173 line = line - 1
174 if wrapped and line < startline:
177 if line <= 0:
183 line, col = map(int, pos.split("."))
184 chars = text.get("%d.0" % line, "%d.0" % (line+1))
194 Chars: line of text, without \\n.
213 '''Return tuple of 'line.col' indexes from selection or insert mark.
227 '''Return (line, col) tuple of ints from 'line.col' string.'''
228 line, col = map(int, index.split(".")) # Fails on invalid index
229 return line, col