[textadept] Active view

From: Robert <ro....at.web.de>
Date: Fri, 7 Oct 2011 19:03:54 +0200

Hi,

I was looking for a way to highlight the 'active' view and came up with this:
Showing the scrollbar only for the active view.

events.connect(events.VIEW_BEFORE_SWITCH, function ()
  buffer.v_scroll_bar = false
end)

events.connect(events.VIEW_AFTER_SWITCH, function ()
  buffer.v_scroll_bar = true
end)

Has anyone experimented with something similar? Changing colors?

Robert
Received on Fri 07 Oct 2011 - 13:03:54 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:23:43 EST