Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-01-03 | In parse_keydesc() strdup the key desc only if needed. | Jérémie Courrèges-Anglas | |
2014-01-03 | messages.h is included from ratpoison.h. | Jérémie Courrèges-Anglas | |
2014-01-03 | Non-compliant enum forward declaration. | Jérémie Courrèges-Anglas | |
2014-01-03 | Remove some fairly obvious comments. | Jérémie Courrèges-Anglas | |
2014-01-03 | FD_CLOEXEC is only used in set_close_on_exec(). | Jérémie Courrèges-Anglas | |
2014-01-03 | We need config.h, no need for ifdef's. | Jérémie Courrèges-Anglas | |
2013-12-03 | Bogus cmdret_free call. | Jérémie Courrèges-Anglas | |
2013-11-26 | Don't check for usleep, useless since Dec. 2004 | Jérémie Courrèges-Anglas | |
* see 9cb1a3d. If your system doesn't provide usleep or ratpoison doesn't manage to find it, please report back. | |||
2013-11-22 | Cast char arguments to to*/is* ctype calls to unsigned char | Jérémie Courrèges-Anglas | |
* those functions expect an int whose value is between -1 and 255. Cast to unsigned char so that sign extension when promoting to int doesn't bite us. | |||
2013-11-21 | Don't assume getsid succeeds, fixes %p "glitches" | Jérémie Courrèges-Anglas | |
* on eg. OpenBSD you get -1 with errno set to EPERM if you call getsid on a pid no in the same session group as you. This makes the session id check much less useful, and exhibits glitches with %p in winfmt. For now, just bail out if getsid fails... | |||
2013-11-20 | Cleanup cmd_meta | Jérémie Courrèges-Anglas | |
* plug memory leak * consistent indentation * minimize variables scope * kill commented code | |||
2013-11-20 | In cmd_meta, don't pass stack garbage to XSendEvent. | Jérémie Courrèges-Anglas | |
* zero out the whole struct and explicitely assign CurrentTime (OL) to ev.xkey.time. This should please Firefox when using C-t t. | |||
2013-11-17 | Use sbuf_chop in fdump() to trim trailing comma. | Jérémie Courrèges-Anglas | |
* those commas shouldn't have been there in the first place. If your scripts rely on this, watch out! * code simplified and variables better named, while here. | |||
2013-11-17 | Introduce sbuf_chop() | Jérémie Courrèges-Anglas | |
2013-08-08 | Plug leak in cmd_sfrestore. | Jérémie Courrèges-Anglas | |
Noticed by Repolho <repolho at zoho dot com>, who came with a different fix. | |||
2013-08-08 | Cleanup cmd_sfdump. | Jérémie Courrèges-Anglas | |
Better variable names, more readable formatting. Use a fixed buffer for the screen number appended to each frameset. | |||
2013-08-08 | Consistent formatting in cmd_sfrestore. | Jérémie Courrèges-Anglas | |
2013-08-08 | Remove useless/untrue comments in cmd_sfrestore. | Jérémie Courrèges-Anglas | |
2013-08-08 | Better variable names in cmd_sfrestore | Jérémie Courrèges-Anglas | |
2013-08-08 | In cmd_sfrestore don't pass screen number to frestore. | Jérémie Courrèges-Anglas | |
Noticed by Repolho <repolho at zoho dot com>, who came with a similar fix. | |||
2013-08-08 | Free buffer used to read history file. | Jérémie Courrèges-Anglas | |
From Repolho <repolho at zoho dot com>, thanks! | |||
2013-08-08 | Do not leak mem if hook is already present. | Jérémie Courrèges-Anglas | |
From Repolho <repolho at zoho dot com>, thanks! | |||
2013-06-04 | silence compilation warning in src/manage.c | Jérémie Courrèges-Anglas | |
2013-06-04 | fix logic in strtok_ws | Jérémie Courrèges-Anglas | |
bug reported by Ellington Santos on the mailing-list, thanks! | |||
2013-05-26 | Adapt group bar to be updated on group number or name change.cr/implement_gnumber-with_winliststyle | cos | |
2013-05-26 | Remove redundant check for NULL. | cos | |
Since add_command() for cmd_gnumber is forcing one (or two) numerical argument, command() will never allow calling the cmd_gnumber() with arg[0] set to NULL. | |||
2013-05-26 | Add initial cmd_gnumber implementation. | cos | |
2013-05-26 | Make group_add_new_group() sort groups numerically. | cos | |
2013-05-26 | draw_string: only call rp_text_width when needed | Jérémie Courrèges-Anglas | |
2013-05-26 | draw_string: more cleanup and clarifications | Jérémie Courrèges-Anglas | |
rename "update" to "print_reason" and use #defined flags instead of magic numbers | |||
2013-05-26 | draw_string: document variables | Jérémie Courrèges-Anglas | |
2013-05-26 | feed draw_partial_string with a string and a length | Jérémie Courrèges-Anglas | |
makes it easier to call along with rp_text_width | |||
2013-05-26 | draw_string: indentation | Jérémie Courrèges-Anglas | |
2013-05-26 | fix draw_string when winliststyle is "row" | Jérémie Courrèges-Anglas | |
bug introduced in 14beabe | |||
2013-05-26 | sync comment with reality | Jérémie Courrèges-Anglas | |
2013-04-27 | avoid get_wmname spamming | Jérémie Courrèges-Anglas | |
This should be a PRINT_DEBUG, not a PRINT_ERROR. | |||
2013-04-15 | Support UTF-8 in the input bar | Jérémie Courrèges-Anglas | |
* introduce RP_IS_UTF8_{CHAR,CONT,START} macros. Those yield non-zero only if the locale is UTF-8. * use those macros in editor.c to properly handle UTF-8 multibyte characters. * use them also in input.c:update_input_window, to draw the cursor Reviewing and comments are welcome. Patches for generic support of multibyte encodings are welcome too. UTF-8 was chosen because of its processing simplicity and its wide use, not because of any political opinion or religious belief. ;) | |||
2013-04-13 | read_rc_file: use getline(3) instead of emulating it | Jérémie Courrèges-Anglas | |
2013-04-13 | Make our fallback getline implementation re-usable | Jérémie Courrèges-Anglas | |
2013-04-13 | get_more_input: use a proper while loop and a switch statement | Jérémie Courrèges-Anglas | |
2013-04-13 | get_more_input: remove useless variable | Jérémie Courrèges-Anglas | |
2013-04-10 | destroy_window: frame could be NULL | Jérémie Courrèges-Anglas | |
* don't dereference it if NULL, as in unmap_notify | |||
2013-04-10 | free_bar: make this function reusable | Jérémie Courrèges-Anglas | |
* set last_msg to NULL after freeing it * no need to test for last_msg being NULL before freeing it (likewise in update_last_message) | |||
2013-04-10 | main: in case XOpenDisplay fails, use exit not return | Jérémie Courrèges-Anglas | |
* this is consistent with surrounding code, and helps code analyzers not to barf about possible memory leaks | |||
2013-04-10 | strtok_ws: account for erroneous usage | Jérémie Courrèges-Anglas | |
* if s and last are both NULL then we'll get a fatal error; instead of waiting for the segfault, display an error message and call abort() | |||
2013-04-10 | main: free display and alt_rcfile | Jérémie Courrèges-Anglas | |
* otherwise specifying -d or -f more than once would lead to a memory leak | |||
2013-04-10 | history_add: make 2nd parameter const | Jérémie Courrèges-Anglas | |
2013-04-10 | Get rid of several unused variables | Jérémie Courrèges-Anglas | |
* cmd_definekey: actually use cmd * cmd_meta: remove ev1 * cmd_resize: remove nbytes * cmd_ratrelwarp: remove s * draw_string: remove lgv, lgc, mask; lgc wasn't XFreeGC'ed * get_more_input: remove nbytes * cleanup_frame: remove last_win * get_window_list: remove other_window Patch from Bernhard R. Link | |||
2013-04-10 | Refactor cmd_prompt | Jérémie Courrèges-Anglas | |
* use a local variable instead of using ARG_STRING(0) ten times * minimize scope of local variables * use a struct sbuf instead of playing with xmalloc and strncpy * correct indentation | |||
2013-04-10 | Refactor cmd_time | Jérémie Courrèges-Anglas | |
* instead of playing with xmalloc, strlen and strncpy, use xstrdup to do the copying and strcspn to delete the newline |