Kaydet (Commit) ac07cf38 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix unintentional switch fall-through (patch from Jason Oster, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3012 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 71dbd0f2
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* doc/geany.txt, doc/geany.html, src/editor.c, src/keybindings.c, * doc/geany.txt, doc/geany.html, src/editor.c, src/keybindings.c,
src/keybindngs.h, src/plugindata.h: src/keybindngs.h, src/plugindata.h:
Make 'Previous/Next word part' keybindings configurable. Make 'Previous/Next word part' keybindings configurable.
* src/editor.c:
Fix unintentional switch fall-through (patch from Jason Oster,
thanks).
2008-09-26 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2008-09-26 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
...@@ -3971,6 +3971,7 @@ void editor_set_indentation_guides(GeanyEditor *editor) ...@@ -3971,6 +3971,7 @@ void editor_set_indentation_guides(GeanyEditor *editor)
* file will show the guides. */ * file will show the guides. */
case SCLEX_DIFF: case SCLEX_DIFF:
mode = SC_IV_NONE; mode = SC_IV_NONE;
break;
/* These languages use indentation for control blocks; the "look forward" method works /* These languages use indentation for control blocks; the "look forward" method works
* best here */ * best here */
...@@ -3983,6 +3984,7 @@ void editor_set_indentation_guides(GeanyEditor *editor) ...@@ -3983,6 +3984,7 @@ void editor_set_indentation_guides(GeanyEditor *editor)
case SCLEX_FORTRAN: /* Is this the best option for Fortran? */ case SCLEX_FORTRAN: /* Is this the best option for Fortran? */
case SCLEX_CAML: case SCLEX_CAML:
mode = SC_IV_LOOKFORWARD; mode = SC_IV_LOOKFORWARD;
break;
/* C-like (structured) languages benefit from the "look both" method */ /* C-like (structured) languages benefit from the "look both" method */
case SCLEX_CPP: case SCLEX_CPP:
...@@ -4002,8 +4004,11 @@ void editor_set_indentation_guides(GeanyEditor *editor) ...@@ -4002,8 +4004,11 @@ void editor_set_indentation_guides(GeanyEditor *editor)
case SCLEX_D: case SCLEX_D:
case SCLEX_OMS: case SCLEX_OMS:
mode = SC_IV_LOOKBOTH; mode = SC_IV_LOOKBOTH;
break;
default: default:
mode = SC_IV_REAL; mode = SC_IV_REAL;
break;
} }
sci_set_indentation_guides(editor->sci, mode); sci_set_indentation_guides(editor->sci, mode);
......
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