Kaydet (Commit) 6acddad7 authored tarafından Nick Treleaven's avatar Nick Treleaven

Allow line breaking after typing any character, not just wordchars.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2629 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 606f6b70
......@@ -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>
......
......@@ -219,10 +219,7 @@ static void check_line_breaking(gint idx, gint pos, gchar c)
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 @@ static void check_line_breaking(gint idx, gint pos, gchar c)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment