Re: [code] [textadept] Buffer labels after session restore

From: Mitchell <m.att.foicica.com>
Date: Tue, 23 Oct 2018 16:55:49 -0400 (EDT)

Hi Lukas,

On Wed, 19 Sep 2018, Procházka Lukáš Ing. wrote:

> Hi Mitchell,
>
> I'm still struggling with buffers and their labels in the tab bar.
>
> Follow my steps:
>
> 1. Pure installation of TA, there is no ~/.textadept dir.
>
> 2. Running TA.
>
> 3. Typing into the Command bar (Ctrl+E) sequentially:
>
> buffer.new()._type = "[a]"; events.emit(events.BUFFER_NEW) ... New
> label "[a]" in the tab bar appears
> buffer.new()._type = "[b]"; events.emit(events.BUFFER_NEW) ... New
> label "[b]" in the tab bar appears
> buffer.new()._type = "[c]"; events.emit(events.BUFFER_NEW) ... New
> label "[c]" in the tab bar appears
>
> 4. Typing into the Command bar (Ctrl+E):
>
> ui.print("test") ... New label "[Message Buffer]" in the tab bar
> appears
>
> 5. So now I have the following buffers and labels in the tab bar:
>
> Untitled | [a] | [b] | [c] | [Message Buffer]
>
> 6. I close TA.
>
> 7. The new file ~/.textadept/session is created with the following content:
>
> ----
> buffer: 0 0 0 [a]
> bookmarks:
> buffer: 0 0 0 [b]
> bookmarks:
> buffer: 0 0 0 [c]
> bookmarks:
> buffer: 5 5 0 [Message Buffer]
> bookmarks:
> size: false 524 400
> view1: 5
> current_view: 1
> ----
>
> 8. I run TA again.
>
> 9. The following labels are displayed in the tab bar:
>
> [a] | [Untitled] | [Untitled] | [Message Buffer]
>
> (it seems that only the last and the current buffer have their labels
> shown well)
>
> instead of:
>
> [a] | [b] | [c] | [Message Buffer]
>
> - Am I doing anything wrong?

Sorry for the delay, but I've committed a fix[1] that will be in the next nightly build.

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/be88d074109b

-- 
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 Tue 23 Oct 2018 - 16:55:49 EDT

This archive was generated by hypermail 2.2.0 : Wed 24 Oct 2018 - 06:47:04 EDT