-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.9 #153
0.9 #153
Commits on Mar 18, 2022
-
avoid potential UB when using isprint()
all the ctype.h functions' argument must be representable as an unsigned char or as EOF, otherwise the behavior is undefined.
Configuration menu - View commit details
-
Copy full SHA for af3bb68 - Browse repository at this point
Copy the full SHA af3bb68View commit details -
base64_digits: reduce scope, implicit zero, +1 size
the array is not accessed outside of base64dec() so it makes sense to limit it's scope to the related function. the static-storage duration of the array is kept intact. this also removes unnecessary explicit zeroing from the start and end of the array. anything that wasn't explicitly zero-ed will now be implicitly zero-ed instead. the validity of the new array can be easily confirmed via running this trivial loop: for (int i = 0; i < 255; ++i) assert(base64_digits[i] == base64_digits_old[i]); lastly, as pointed out by Roberto, the array needs to have 256 elements in order to able access it as any unsigned char as an index; the previous array had 255. however, this array will only be accessed at indexes which are isprint() || '=' (see `base64dec_getc()`), so reducing the size of the array to the highest printable ascii char (127 AFAIK) + 1 might also be a valid strategy.
Configuration menu - View commit details
-
Copy full SHA for ef05519 - Browse repository at this point
Copy the full SHA ef05519View commit details
Commits on Apr 19, 2022
-
code-golfing: cleanup osc color related code
* adds missing function prototype * move xgetcolor() prototype to win.h (that's where all the other x.c func prototype seems to be declared at) * check for snprintf error/truncation * reduces code duplication for osc 10/11/12 * unify osc_color_response() and osc4_color_response() into a single function the latter two was suggested by Quentin Rameau in his patch review on the hackers list.
Configuration menu - View commit details
-
Copy full SHA for 8629d9a - Browse repository at this point
Copy the full SHA 8629d9aView commit details
Commits on May 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for baa9357 - Browse repository at this point
Copy the full SHA baa9357View commit details
Commits on Aug 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 72fd327 - Browse repository at this point
Copy the full SHA 72fd327View commit details
Commits on Sep 16, 2022
-
FAQ: document the color emojis crash issue which affected some system…
…s is fixed It is fixed in libXft 2.3.6: https://gitlab.freedesktop.org/xorg/lib/libxft/-/blob/libXft-2.3.5/NEWS
Configuration menu - View commit details
-
Copy full SHA for 0008519 - Browse repository at this point
Copy the full SHA 0008519View commit details
Commits on Oct 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 68d1ad9 - Browse repository at this point
Copy the full SHA 68d1ad9View commit details
Commits on Oct 25, 2022
-
fix buffer overflow when handling long composed input
To reproduce the issue: " If you already have the multi-key enabled on your system, then add this line to your ~/.XCompose file: [...] <question> <T> <E> <S> <T> <question> : "1234567890123456789012345678901234567890123456789012345678901234567890" " Reported by and an initial patch by Andy Gozas <andy@gozas.me>, thanks! Adapted the patch, for now st (like dmenu) handles a fixed amount of composed characters, or otherwise ignores it. This is done for simplicity sake.
Configuration menu - View commit details
-
Copy full SHA for e5e9598 - Browse repository at this point
Copy the full SHA e5e9598View commit details
Commits on Feb 5, 2023
-
Fixed OSC color reset without parameter->resets all colors
Adapted from (garbled) patch by wim <wim@thinkerwim.org> Additional notes: it should reset all the colors using xloadcols(). To reproduce: set a different (theme) color using some escape code, then reset it: printf '\x1b]104\x07'
Configuration menu - View commit details
-
Copy full SHA for 7e8050c - Browse repository at this point
Copy the full SHA 7e8050cView commit details
Commits on Feb 7, 2023
-
Add support for DSR response "OK" escape sequence
"VT100 defines an escape sequence [1] called Device Status Report (DSR). When the DSR sequence received is `csi 5n`, an "OK" response `csi 0n` is returned. This patch adds that "OK" response. I encountered this missing sequence when I noticed that fzf [2] would clobber my prompt whenever completing a find. To test that ST doesn't currently respond to `csi 5n`, use fzf's shell extension in ST's repo to complete the path for a file. my-fancy-prompt $ vim **<tab> <select a file> st.c Select a file with <enter>, and notice that fzf clobbers some or all of your prompt. After applying this patch, do the same test as above and notice that fzf has no longer clobbered your prompt by placing the file name in the correct position in your command. my-fancy-prompt $ vim **<tab> <select a file> my-fancy prompt $ vim st.c Thank you for considering my first patch submission. [1] https://www.xfree86.org/current/ctlseqs.html#VT100%20Mode [2] https://github.com/junegunn/fzf " Patch slightly adapted with input from the mailinglist,
Configuration menu - View commit details
-
Copy full SHA for f17abd2 - Browse repository at this point
Copy the full SHA f17abd2View commit details -
ignore C1 control characters in UTF-8 mode
Ignore processing and printing C1 control characters in UTF-8 mode. These are in the range: 0x80 - 0x9f. By default in st the mode is set to UTF-8. This matches more the behaviour of xterm with the options -u8 or +u8 also. Also see the xterm resource "allowC1Printable". Let me know if this breaks something, in most cases I don't think so. As usual a very good reference is: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
Configuration menu - View commit details
-
Copy full SHA for 211964d - Browse repository at this point
Copy the full SHA 211964dView commit details
Commits on Feb 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7192fed - Browse repository at this point
Copy the full SHA 7192fedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b23dc3 - Browse repository at this point
Copy the full SHA 6b23dc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75a5f20 - Browse repository at this point
Copy the full SHA 75a5f20View commit details
Commits on Apr 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 54618f0 - Browse repository at this point
Copy the full SHA 54618f0View commit details