From cbf9813632d7ee921ffa1fda0d1f69128b2bc755 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 22 Apr 2010 16:02:45 +0000 Subject: [PATCH] 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 --- ChangeLog | 2 ++ src/editor.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index a7cfb87fd..1d5f523a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/editor.c b/src/editor.c index 763778a46..851b61868 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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;