SF.net SVN: geany:[5397] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Nov 11 13:27:34 UTC 2010


Revision: 5397
          http://geany.svn.sourceforge.net/geany/?rev=5397&view=rev
Author:   ntrel
Date:     2010-11-11 13:27:34 +0000 (Thu, 11 Nov 2010)

Log Message:
-----------
Fix wrong snippet indentation when original cursor line has
non-indentation whitespace (patch by david, thanks).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-11-11 13:13:37 UTC (rev 5396)
+++ trunk/ChangeLog	2010-11-11 13:27:34 UTC (rev 5397)
@@ -3,6 +3,9 @@
  * src/document.c:
    Display better error messages when saving a document fails (patch by
    Dimitar Zhekov, thanks).
+ * src/editor.c:
+   Fix wrong snippet indentation when original cursor line has
+   non-indentation whitespace (patch by david, thanks).
 
 
 2010-11-10  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2010-11-11 13:13:37 UTC (rev 5396)
+++ trunk/src/editor.c	2010-11-11 13:27:34 UTC (rev 5397)
@@ -2729,6 +2729,8 @@
 			case '\t':
 				count += tab_size;
 				break;
+			default:
+				return count;
 		}
 	}
 	return count;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list