question and remarks

From: anton <>
Date: Sat, 11 Jun 2011 05:07:52 -0700 (PDT)

Hi all,

I would be very grateful if somebody could help me with the following

1. non ASCII in status bar

Are there some good ways to write non ASCII (below 255) characters to
the status bar
with their codes?

If I try
  gui.statusbar_text = ''
it ok. But
 gui.statusbar_text =string.char(195)
gives some weird character.
Well, this
     '' == string.char(string.byte(''))
is also false

2. buffer.word_start_position (and buffer.word_end_position)

If you have something like (two space between c and d)
"abc def"
in the second line (first line is empty) then
caret before a : 0 4
caret between a and b: 1 4
caret between b and c : 1 4
caret after c : 1 6

I would expect that all four should give 1 4
This can be indeed achieved by setting only_word_chars to "%a".

Is this strange behaviour a bug or a feature?

3. user_list_selection (wParam, text)

IM{VERY!}HO the already used values of wParam could be stored more
transparent .

cf. textadept/keys.lua

local RECENT_FILES = 1
  function(type, text) if type == RECENT_FILES then io.open_file(text)
end end)

Received on Sat 11 Jun 2011 - 08:07:52 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:10:28 EST