Re: [code] Line number clipping

From: Philip R Brenan <philiprbrenan.att.gmail.com>
Date: Mon, 11 Jan 2016 22:15:14 +0000

Wow! Impressive. I gave just added vertical selection too. Thanks!

Thanks,

Phil

Philip R Brenan

On Mon, Jan 11, 2016 at 10:02 PM, Robert Gieseke <rob.g.att.web.de> wrote:

> Hi Philipp,
>
> Am 11/01/16 um 22:28 schrieb Philip R Brenan:
> > Is there a way to stop the line numbers being clipped when the buffer is
> > zoomed as seen in the attached?
>
> yes, it's this snippet here:
>
> -- adjust line number margin on zoom
> events.connect('SCN', function(n)
> if n.code == _SCINTILLA.constants.SCN_ZOOM then
> local buffer = buffer
> local width = #(buffer.line_count..'')
> width = width > 4 and width or 4
> buffer.margin_width_n[0] = 4 + width *
> buffer:text_width(_SCINTILLA.constants.STYLE_LINENUMBER, '9')
> end
> end)
>
> From:
>
> http://foicica.com/wiki/adjust-line-number-margin-on-zoom
>
> Cheers,
> Robert
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 11 Jan 2016 - 17:15:14 EST

This archive was generated by hypermail 2.2.0 : Tue 12 Jan 2016 - 06:40:25 EST