Revision: 2629 http://geany.svn.sourceforge.net/geany/?rev=2629&view=rev Author: ntrel Date: 2008-05-30 07:25:22 -0700 (Fri, 30 May 2008)
Log Message: ----------- Allow line breaking after typing any character, not just wordchars.
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-05-30 14:18:43 UTC (rev 2628) +++ trunk/ChangeLog 2008-05-30 14:25:22 UTC (rev 2629) @@ -2,6 +2,8 @@
* src/plugindata.h: Add deprecated macro for doc_array. + * src/editor.c: + Allow line breaking after typing any character, not just wordchars.
2008-05-29 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2008-05-30 14:18:43 UTC (rev 2628) +++ trunk/src/editor.c 2008-05-30 14:25:22 UTC (rev 2629) @@ -219,10 +219,7 @@ return;
if (c == GDK_space) - pos--; /* Use previous space, not new one */ - else - if (strchr(GEANY_WORDCHARS, c) == NULL) - return; + pos--; /* Look for previous space, not the new one */
line = sci_get_current_line(sci); lstart = sci_get_position_from_line(sci, line); @@ -230,7 +227,7 @@ if (pos - lstart < editor_prefs.line_break_column) return;
- /* look for the last space before editor_prefs.line_break_column */ + /* look for the last space before line_break_column */ pos = MIN(pos, lstart + editor_prefs.line_break_column);
while (pos > lstart)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.