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

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
üst 6786e05e
......@@ -9,6 +9,8 @@
* src/templates.c, src/templates.h, src/editor.c, doc/geany.txt,
doc/geany.html:
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>
......
......@@ -984,6 +984,11 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
editor_show_calltip(editor, -1);
}
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 */
return FALSE;
......
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