Recalculate line margin width when zooming (fixes #2990553).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4853 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-04-22 16:02:45 +00:00
parent 6786e05e03
commit cbf9813632
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,8 @@
* src/templates.c, src/templates.h, src/editor.c, doc/geany.txt, * src/templates.c, src/templates.h, src/editor.c, doc/geany.txt,
doc/geany.html: doc/geany.html:
Support {pc} wildcard in snippets to escape percent char. Support {pc} wildcard in snippets to escape percent char.
* src/editor.c:
Recalculate line margin width when zooming (fixes #2990553).
2010-04-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2010-04-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -984,6 +984,11 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
editor_show_calltip(editor, -1); editor_show_calltip(editor, -1);
} }
break; break;
case SCN_ZOOM:
/* recalculate line margin width */
sci_set_line_numbers(sci, editor_prefs.show_linenumber_margin, 0);
break;
} }
/* we always return FALSE here to let plugins handle the event too */ /* we always return FALSE here to let plugins handle the event too */
return FALSE; return FALSE;