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
This commit is contained in:
parent
71dbd0f2d6
commit
ac07cf386e
@ -6,6 +6,9 @@
|
||||
* doc/geany.txt, doc/geany.html, src/editor.c, src/keybindings.c,
|
||||
src/keybindngs.h, src/plugindata.h:
|
||||
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>
|
||||
|
@ -3971,6 +3971,7 @@ void editor_set_indentation_guides(GeanyEditor *editor)
|
||||
* file will show the guides. */
|
||||
case SCLEX_DIFF:
|
||||
mode = SC_IV_NONE;
|
||||
break;
|
||||
|
||||
/* These languages use indentation for control blocks; the "look forward" method works
|
||||
* best here */
|
||||
@ -3983,6 +3984,7 @@ void editor_set_indentation_guides(GeanyEditor *editor)
|
||||
case SCLEX_FORTRAN: /* Is this the best option for Fortran? */
|
||||
case SCLEX_CAML:
|
||||
mode = SC_IV_LOOKFORWARD;
|
||||
break;
|
||||
|
||||
/* C-like (structured) languages benefit from the "look both" method */
|
||||
case SCLEX_CPP:
|
||||
@ -4002,8 +4004,11 @@ void editor_set_indentation_guides(GeanyEditor *editor)
|
||||
case SCLEX_D:
|
||||
case SCLEX_OMS:
|
||||
mode = SC_IV_LOOKBOTH;
|
||||
break;
|
||||
|
||||
default:
|
||||
mode = SC_IV_REAL;
|
||||
break;
|
||||
}
|
||||
|
||||
sci_set_indentation_guides(editor->sci, mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user