Commit graph

4,939 commits

Author SHA1 Message Date
Xavier G
f5033031b1 Improve get_alignment so it works with columns (width), not chars (length). 2016-04-23 03:18:08 +02:00
Xavier G
e720a48ee9 Move wcwidth.c and utf8.{h,c} to core.
This move makes sense since these files contain rather fundamental functions
(fundamental here means that we shouldn't have had to implement them)
which are required by other functions located in core/special-vars.c.
2016-04-23 03:18:01 +02:00
Xavier G
2b92e43d37 Add function get_utf8_chars_for_width(). 2016-04-23 02:22:39 +02:00
Xavier G
d5e0f8097c Add functions get_utf8_{string,char}_width(). 2016-04-23 02:22:33 +02:00
Xavier G
d14690767c Improve UTF-8 handling in display_sorted_nicks().
This commit aims at improving the way irssi generates the output of /names with
UTF-8 nicks. However, it is only a partial fix: instead of counting bytes,
irssi now counts characters; but it should ideally count columns, since Unicode
characters are liable to spread accross several columns. Alas, as this message
is being written, the whole ecosystem is far from being able to deal with that:
some terminals handle multi-columns characters, some others don't; various
ncurses programs (vim, tmux, etc.) suffer from bugs on terminals who do handle
them.
2016-04-18 01:39:27 +02:00
Xavier G
cf643fa814 Make get_alignment available outside special-vars.c
Since get_alignment handles UTF-8, it can be useful in other parts of irssi,
e.g. display_sorted_nicks().
2016-04-18 01:39:23 +02:00
Xavier G
3e10659b64 Fix indentation of display_sorted_nicks().
This was done assuming an "indent with tab, align with spaces" approach.
2016-04-18 01:39:03 +02:00
Xavier G
24c40f899e get_alignment: handle UTF-8 strings.
When using irssi along with some tools like e.g. BitlBee, one can encounter
nicknames or channels with UTF-8 multibyte characters. It becomes therefore
necessary for some irssi functions to better handle UTF-8, starting with
get_alignment. Indeed, get_alignment was liable to mess up terminals by
splitting strings in the middle of a multibyte character.
2016-04-16 20:47:42 +02:00
ailin-nemui
0e5a32fb62 Merge pull request #467 from dequis/EAI_SYSTEM
net_gethosterror: Handle EAI_SYSTEM ("System error") properly
2016-04-07 12:33:03 +02:00
dequis
2ba4b9d26a net_gethosterror: Handle EAI_SYSTEM ("System error") properly
That error code means "check errno". A few users got it and we never
figured out what happened - it usually fixed itself after restarting
something - so hopefully with this we'll have more information the next
time.
2016-04-07 07:26:19 -03:00
ailin-nemui
1349755bb5 Merge pull request #453 from LemonBoy/dcc-quote
Support quoted filenames in some /DCC commands
2016-04-05 22:39:54 +02:00
ailin-nemui
26f875263a Merge pull request #455 from ailin-nemui/cutbuffer
improved cutbuffer handling
2016-03-31 19:13:53 +02:00
ailin-nemui
70a44daad2 Merge pull request #461 from ailin-nemui/fix_squery
Revert "Removed the obsolete SQUERY and SERVLIST commands"
2016-03-29 22:45:47 +02:00
ailin-nemui
ec4ecd844b Revert "Removed the obsolete SQUERY and SERVLIST commands"
This reverts commit 4beebe3238.
2016-03-29 22:41:01 +02:00
ailin-nemui
aec2466e36 Improve cutbuffer handling
* Adds two new keys which you can bind in /bind:
  yank_next_cutbuffer: Revert to the previous last deleted text
  append_next_kill: Append next deletion
* Consecutive kills are now appended to the current cutbuffer
2016-03-29 15:20:45 +02:00
ailin-nemui
0c69b75f77 Merge pull request #460 from ailin-nemui/integrate/0.8.19
Merge tag '0.8.19'
2016-03-24 15:24:08 +01:00
ailin-nemui
bab60daa17 Merge tag '0.8.19' 2016-03-24 15:02:33 +01:00
ailin-nemui
ce5a6929f5 Merge pull request #459 from ailin-nemui/fix_430
Make use of terminal application keys configurable
2016-03-24 14:52:53 +01:00
ailin-nemui
c438315741 tag as 0.8.19 0.8.19 2016-03-23 00:24:25 +01:00
ailin-nemui
6c0c0c60ad Make use of terminal application keys configurable
adds a new setting term_appkey_mode which can enable or disable the use
of keyboard transmit (application keys) mode. Fixes #430
2016-03-23 00:08:36 +01:00
ailin-nemui
6572005d3d Merge pull request #458 from ailin-nemui/fix_449
Properly toggle bracketed paste mode on stop/cont
2016-03-23 00:08:36 +01:00
ailin-nemui
5ef2b958d9 Merge pull request #457 from ailin-nemui/fix_450
fix race condition in terminal init
2016-03-23 00:08:36 +01:00
ailin-nemui
c657b9c3b1 Merge pull request #447 from ailin-nemui/fix_dcc_help
correct quoting in /help dcc
2016-03-23 00:08:36 +01:00
ailin-nemui
4a2ee3c344 Merge pull request #446 from ailin-nemui/fix_445
strip less whitespace from commands
2016-03-23 00:08:36 +01:00
ailin-nemui
fe600dd5dc Merge pull request #442 from LemonBoy/fix-435
Do not assume any default value for statusmsg.
2016-03-23 00:08:36 +01:00
ailin-nemui
15296a0165 Merge pull request #444 from LemonBoy/timeout-id
Use 0 as a sentinel value for sasl_timeout
2016-03-23 00:08:35 +01:00
TheLemonMan
7d3fe66e50 Merge pull request #439 from horgh/ssl-errors
Clear error queue before SSL I/O operations
2016-03-23 00:08:35 +01:00
ailin-nemui
d20872ac27 Merge pull request #438 from dequis/sasl-timeout-disconnect
Remove sasl timeout source when the server disconnects
2016-03-23 00:08:35 +01:00
Giuseppe
4416942fcd Merge pull request #432 from grawity/fix-external
fix SASL EXTERNAL
2016-03-23 00:08:35 +01:00
ailin-nemui
025f08d5fc Merge pull request #407 from irssi/ailin-nemui-perl-bugs
Mention known Perl Bugs in perl.txt
2016-03-23 00:08:35 +01:00
dx
22d772890e Merge pull request #405 from LemonBoy/serialize-channel-name
Serialize the 'name' attribute of the CHANNEL_REC.
2016-03-23 00:08:35 +01:00
ailin-nemui
15f79a713f set version to 0.8.18a-head 2016-03-23 00:08:35 +01:00
ailin-nemui
b9914abbf3 Make use of terminal application keys configurable
adds a new setting term_appkey_mode which can enable or disable the use
of keyboard transmit (application keys) mode. Fixes #430
2016-03-22 23:58:34 +01:00
ailin-nemui
b1ffd5f647 Merge pull request #452 from LemonBoy/terminfo-cup
Don't call terminfo_cont() twice on resume
2016-03-22 23:05:27 +01:00
ailin-nemui
9cb0419435 Merge pull request #443 from LemonBoy/chatnet
Throw an error when a chatnet has no available url
2016-03-22 23:00:01 +01:00
ailin-nemui
29e160f0bf Merge pull request #457 from ailin-nemui/fix_450
fix race condition in terminal init
2016-03-22 22:57:28 +01:00
ailin-nemui
3bc8afa740 Merge pull request #458 from ailin-nemui/fix_449
Properly toggle bracketed paste mode on stop/cont
2016-03-22 22:54:43 +01:00
LemonBoy
897016131e Don't call terminfo_cont() twice on resume
Fixes some weirdness when using ^Z with zsh.
2016-03-22 22:50:24 +01:00
ailin-nemui
d36d34fe04 Merge pull request #456 from ailin-nemui/fix_454
cutbuffer: do not unconditionally use replace when noop was requested
2016-03-22 22:47:42 +01:00
ailin-nemui
35d255fc8c Properly toggle bracketed paste mode on stop/cont
Fixes #449
2016-03-22 16:36:30 +01:00
LemonBoy
be93c8d5be Update the documentation about DCC 2016-03-22 16:03:05 +01:00
LemonBoy
8b54366d95 Support quoted filenames in some /DCC commands 2016-03-22 16:00:00 +01:00
LemonBoy
e5ee243ab6 Simplify some logic in server_create_conn 2016-03-22 15:45:08 +01:00
ailin-nemui
83bee9c6b7 Merge pull request #447 from ailin-nemui/fix_dcc_help
correct quoting in /help dcc
2016-03-22 15:25:13 +01:00
ailin-nemui
195c44a76e Merge pull request #446 from ailin-nemui/fix_445
strip less whitespace from commands
2016-03-22 15:23:37 +01:00
ailin-nemui
938d0071c6 fix race condition in terminal init
remove the tcgetattr call to a single time on irssi load instead of
querying it each time. Fixes #450
2016-03-22 15:21:20 +01:00
ailin-nemui
117c890d98 cutbuffer: do not unconditionally use replace when noop was requested 2016-03-22 14:43:31 +01:00
ailin-nemui
f7658640fb Merge pull request #437 from vague666/glob_matching
Use glob matching for activity_hide_targets
2016-03-21 11:21:01 +01:00
ailin-nemui
7baf3a28bb correct quoting in /help dcc 2016-03-20 22:43:12 +01:00
ailin-nemui
132d3c49f3 strip less whitespace from commands
fixes #445
2016-03-20 22:39:06 +01:00