summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-11-09Add an option to strip trailing whitespace when parsing commandsLemonBoy
2015-11-09Merge pull request #313 from isundil/masterailin-nemui
Fix #45 Make it easy to delete default channels, servers and networks
2015-11-09Merge pull request #341 from dequis/strsplit-len-fixailin-nemui
Fix invalid reads in strsplit_len when splitting on spaces
2015-11-09strsplit_len: make it look more like the original versiondequis
2015-11-09strsplit_len: use strlen() directly instead of a remaining_len variabledequis
2015-11-08Merge remote-tracking branch 'origin/master' into bracketed-pastedequis
2015-11-02Merge pull request #330 from dequis/xterm-keypad-enterailin-nemui
Add xterm's keypad enter, meta-O-M to "key return" bindings
2015-11-01Merge pull request #320 from irssi/ahf/add-setting-type-anydx
Fix warnings
2015-10-28Preserve the sasl_ options across reconnects.LemonBoy
2015-10-23Fix invalid reads in strsplit_len when splitting on spacesdequis
The symptom for this one is randomly getting lines split before the last word, even if there's no need for splitting. Also, this function is only reached if recode is on, and iconv failed (for example, due to an incorrect source charset). Thanks to vague for finding this and providing valgrind logs. The loop that looks for spaces tried to read backwards from the end of the current line, with the end being determined by len. Assuming strsplit_len() with len=400, this meant accessing str[399] in the first iteration. For strings that don't need splitting, this means an invalid read always. If that invalid read happens to hit garbage that has a space character, (len - offset) points after the end of string, which isn't a problem for g_strndup() since it stops at the first null, and no splitting happens. If the garbage doesn't have any spaces, it splits by the last word. This commit avoids that loop entirely if (remaining_len > len). It also changes the way it iterates over the string to be much less confusing.
2015-10-08Fix /reconnect RECON-1 saying "Reconnection tag 1 not found"dequis
Turns out it was fixing the wrong string, and trying to do atoi("RECON-1") instead of atoi("1"). "/reconnect 1" worked, but "/reconnect RECON-1" gave that confusing error message.
2015-10-06Add xterm's keypad enter, meta-O-M to "key return" bindingsdequis
From the 'kent' terminfo entry. Also applies to putty. Fixes #327
2015-10-04Merge pull request #318 from LemonBoy/fix-utf8-elementsailin-nemui
Fix the display of utf8 sequences in the gui
2015-10-04Fix the indentation.LemonBoy
2015-10-03Merge pull request #314 from LemonBoy/sasl_sessiondx
Save the sasl state in the session
2015-10-03Remove check for >= 0 for unsigned unichar.Alexander Færøy
2015-10-03Add SETTING_TYPE_ANY and replace -1 with it.Alexander Færøy
2015-10-03Include write-buffer.h in log-away.cLemonBoy
Silence a warning and make the world a better place.
2015-10-02Set HOST_NAME_MAX to 255, if it's undefined.Alexander Færøy
Thanks to Jilles and dx. Fixes #309
2015-10-02Add missing null terminator to the g_build_path() varargsdequis
Lemon broke it a few commits ago.
2015-10-02Merge pull request #316 from LemonBoy/fix_mem_leakGeert Hauwaerts
Fix a memory leak.
2015-10-02Merge pull request #319 from LemonBoy/awaylog-flushGeert Hauwaerts
Flush the dirty buffer to disk
2015-10-02Flush the dirty buffer to diskLemonBoy
Given a big enough write_buffer_size and a long enough write_buffer_timeout it might be possible to show the user an incomplete or empty awaylog. Patch by: Petteri Aimonen
2015-10-02Kill an unneeded declarationLemonBoy
2015-10-02Even simpler logicLemonBoy
2015-10-02Rework the logic to avoid allocating memoryLemonBoy
2015-10-02Fix the display of utf8 sequences in the guiLemonBoy
term_addstr() had a long-standing fixme that suggested it didn't take into account the string encoding when calculating the string length. The BIG5 code path is untested.
2015-10-02Fix a memory leak.LemonBoy
g_get_current_dir() returns a heap-allocated string.
2015-10-02Merge pull request #294 from dequis/key-states-rescan-recursion-limitdx
Limit recursion depth of key/combo expansion in key_states_scan()
2015-10-02Don't set the usermode field if blankLemonBoy
Fixes FS#919
2015-10-02Save the sasl state in the sessionLemonBoy
This is seemingly required to have irssi re-authenticate after a restart.
2015-10-01Fix return value of server_setup_remove_chatnetisundil
2015-10-01Updated server removalisundil
Removing network will also remove attached channels
2015-10-01Fix #45 Make it easy to delete default channels, servers and networksisundil
Removing network will now also remove all attached servers
2015-09-29Make sure sasl settings are defined before printing them outJari Matilainen
2015-09-29Add sasl info to /network list output if availableJari Matilainen
2015-09-27Handle empty bracketed pastes (or sequences of those)dequis
Both cases were off-by-one mistakes erring on the side of being too conservative. This fixes these two harmless issues: - For a single empty paste, it required another keystroke before processing it - For a sequence of themcase, a single '~' was left in the input
2015-09-27Handle a paste start marker right after an end one (ignore both)dequis
This actually workarounds a bug with the "st" terminal, for which i've already submitted a patch, but irssi needs to be able to handle it decently too.
2015-09-27Create paste_bracketed_middle() function to handle small pastesdequis
"Small" as in ending in the same sig_input() call where they started
2015-09-27Fix some minor style issuesdequis
2015-09-27Send last line of bracketed paste together with the restdequis
2015-09-27paste_bracketed_end: Fix rest length calculationdequis
2015-09-27Save the part of the paste buffer after the bp_end marker for laterdequis
Also move relevant code to a paste_bracketed_end() function
2015-09-27Improve bracketed paste start/end detectiondequis
- Use a keybinding to detect the start of a bracketed paste - Iterate over the paste buffer looking for the end marker
2015-09-27Get rid of the non-portable memmemLemonBoy
The sequences we're after are found at the beginning or at the end of the buffer, there's no need to scan the whole thing.
2015-09-27Enable the bracketed paste mode on demandLemonBoy
2015-09-27Replace some hairy logic with g_array_remove_rangeLemonBoy
In the hope it'll do the same under the hood.
2015-09-27TogglesLemonBoy
2015-09-27Implement the bracketed paste modeLemonBoy
As an alternative method of paste detection, more reliable but might not be supported by all the VTs.
2015-09-26Merge pull request #304 from LemonBoy/sasl_user_optionsailin-nemui
Allow the user to set and modify the SASL parameters