huilin1990 / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

zen_actions.py issues #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I've been working on a zen coding plugin for gedit which uses zen_editor
interface and stumbled upon a few issues in zen_actions.py:

- in find_abbrevation(), I replaced
return editor.get_content()[start, end];
with
return editor.get_content()[start:end]
to avoid python errors

- in find_new_edit_point(), I wrapped affectations in while loop in
try/except to avoid warnings when the caret is at the last edit point

- if the caret is at the beginning or the end of the document,
prev_edit_point and next_edit_point don't work ; ie the caret doesn't move
(I have no correction for this one)

The modifications are available on github here: http://bit.ly/cxKikl

Best regards

Original issue reported on code.google.com by franck.marcia@gmail.com on 3 May 2010 at 8:10

GoogleCodeExporter commented 8 years ago
Thanks for support, I've just added your fixes to my master branch. These are 
bugs from JavaScript porting :)

Original comment by serge....@gmail.com on 4 May 2010 at 8:10