Fixed Gtk3 buffer.get_text issue
This commit is contained in:
parent
c66e4b0149
commit
f7a367e602
@ -432,7 +432,7 @@ class GuiGramplet(object):
|
|||||||
def get_text(self):
|
def get_text(self):
|
||||||
start = self.buffer.get_start_iter()
|
start = self.buffer.get_start_iter()
|
||||||
end = self.buffer.get_end_iter()
|
end = self.buffer.get_end_iter()
|
||||||
return self.buffer.get_text(start, end)
|
return self.buffer.get_text(start, end, True) # include invisible chars
|
||||||
|
|
||||||
def insert_text(self, text):
|
def insert_text(self, text):
|
||||||
self.buffer.insert_at_cursor(text)
|
self.buffer.insert_at_cursor(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user