Re: [code] Textadept 7.0 status bar updates

From: Robert Gieseke <rob.g.att.web.de>
Date: Sun, 03 Nov 2013 18:23:07 +0100

Hi Michael,

Am 11/3/13, 3:59 PM, schrieb Michael Richter:
> Is there any way to force an update of the status bar? I've got a
> keybinding to a function that quickly switches between spaces/2 and tabs/8
> and it works flawlessly. The status bar, however, doesn't update until I
> do something after typing it. This gives the slightly unnerving illusion
> that the macro didn't fire. I can't find anything in the LuaDoc for the ui
> module that would let me force an update of the status bar, though.
>

I think you need events.UPDATE_UI, in modules/textadept/keys.lua there
is this in the utils module:

set_indentation = function(i)
     buffer.tab_width = i
     events.emit(events.UPDATE_UI) -- for updating statusbar
   end

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.
Received on Sun 03 Nov 2013 - 12:23:07 EST

This archive was generated by hypermail 2.2.0 : Mon 04 Nov 2013 - 06:54:42 EST