diff options
-rw-r--r-- | CristianEdit/CristianEdit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CristianEdit/CristianEdit.py b/CristianEdit/CristianEdit.py index 25357ca..d572af2 100644 --- a/CristianEdit/CristianEdit.py +++ b/CristianEdit/CristianEdit.py @@ -534,7 +534,10 @@ class CristianEdit(Gtk.Plug): fecha = dia.strftime('%d/%m/%y') hora = time.strftime('%H:%M:%S') - insertar = buffer.insert_at_cursor(str(fecha + ' ' + hora)) + buffer.insert_at_cursor(str(fecha + ' ' + hora)) + + posicion = buffer.get_iter_at_mark(buffer.get_insert()) + buffer.select_range(posicion, posicion) def mostrar_dialogo_reemplazar(self, widget=None): """Muestra un diálogo para reemplzar texto""" |