pygimp: pyconsole: coding style

This commit is contained in:
Kristian Rietveld 2016-04-28 21:54:06 +02:00 committed by Kristian Rietveld
parent 21a4999230
commit a795c1c4ff
1 changed files with 2 additions and 0 deletions

View File

@ -305,10 +305,12 @@ class _ReadLine(object):
def __get_cursor(self):
return self.buffer.get_iter_at_mark(self.cursor)
def __get_start(self):
iter = self.__get_cursor()
iter.set_line_offset(len(self.ps))
return iter
def __get_end(self):
iter = self.__get_cursor()
if not iter.ends_line():