[gedit-plugins] Fixed windows-line-ending bug with code comment. Fixes bug #603717.



commit 95b38e67a0782aab7dbab8791947720578ed988c
Author: Jonas Cleve <jonas jonas-laptop com>
Date:   Thu Dec 3 19:45:40 2009 +0100

    Fixed windows-line-ending bug with code comment. Fixes bug #603717.

 plugins/codecomment/codecomment.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/codecomment/codecomment.py b/plugins/codecomment/codecomment.py
index a1d8a3c..3eff624 100644
--- a/plugins/codecomment/codecomment.py
+++ b/plugins/codecomment/codecomment.py
@@ -156,7 +156,7 @@ def do_comment(document, unindent=False):
     if selection != ():
         (start, end) = selection
         if start.ends_line():
-            start.forward_char()
+            start.forward_line()
         elif not start.starts_line():
             start.set_line_offset(0)
         if end.starts_line():



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]