Home | History | Annotate | Download | only in idlelib

Lines Matching full:line

125             line, col = get_line_col(start)
126 res = self.search_backward(text, prog, line, col, wrap, ok)
132 line, col = get_line_col(start)
133 res = self.search_forward(text, prog, line, col, wrap, ok)
136 def search_forward(self, text, prog, line, col, wrap, ok=0):
138 startline = line
139 chars = text.get("%d.0" % line, "%d.0" % (line+1))
144 return line, m
145 line = line + 1
146 if wrapped and line > startline:
150 chars = text.get("%d.0" % line, "%d.0" % (line+1))
154 line = 1
158 def search_backward(self, text, prog, line, col, wrap, ok=0):
160 startline = line
161 chars = text.get("%d.0" % line, "%d.0" % (line+1))
166 return line, m
167 line = line - 1
168 if wrapped and line < startline:
171 if line <= 0:
177 line, col = map(int, pos.split("."))
178 chars = text.get("%d.0" % line, "%d.0" % (line+1))
202 # Return a tuple of indices ("line.col" strings).
216 # Helper to parse a text index into a (line, col) tuple.
219 line, col = map(int, index.split(".")) # Fails on invalid index
220 return line, col