summaryrefslogtreecommitdiff
path: root/Src/Zle
AgeCommit message (Collapse)AuthorFilesLines
2025-03-0353399: don't load ZLE early to set keymapOliver Kiddle1-1/+4
When zsh is run with -o vi / -o emacs, instead of loading ZLE to force the change, only record the option state. Then when ZLE starts, the vi option determines the default keymap.
2025-03-0353394: drop OSC and DCS sequences in key inputOliver Kiddle1-2/+26
They are likely to be terminal query responses not keys. If they do match a keybinding that's not affected. Also does likewise for certain CSI sequences.
2025-02-1253360: domenuselect() fails if the previous completion did not generate a listBart Schaefer1-0/+3
(fix for segfault)
2025-01-3053335: Remove unused dupstring_glen() functionOliver Kiddle4-26/+17
Also make use of the dupstring_wlen() variant in more places to avoid a strlen()
2025-01-3053332, 53334: Avoid strlen calls after sprintfOliver Kiddle2-7/+6
2024-11-2353243: fix use of vi-fetch-history with a rangeOliver Kiddle1-4/+17
2024-03-1852750: remove ansi2knr support for old pre-ansi K&R compilersOliver Kiddle4-6/+6
2024-03-0552646: extend support for highlight groups to completion explanation strings ↵Oliver Kiddle2-0/+15
and WATCHFMT
2024-02-03Typos in previous commit commentsBart Schaefer1-1/+1
2024-02-03unposted: Record as comments some notes about namespace usage exceptions.Bart Schaefer1-1/+4
2024-01-2852500: add layer token to zle attributesOliver Kiddle2-44/+73
This provide control over the precedence of highlighting where different regions overlap.
2024-01-2852441: zle_vi: Mark variables with const init as constJörg Sommer1-1/+1
Because these variables are initialized with as constant string, they should be marked as *const* to make the compiler running with `-Wwrite-strings` more happy.
2024-01-2852440: zle.textobjects: Mark variables as constJörg Sommer1-3/+3
Because these variables are initialized with as constant string, they should be marked as *const* to make the compiler running with `-Wwrite-strings` more happy.
2023-12-1352382: avoid the non-standard \e in C code, preferring \033Oliver Kiddle1-1/+1
2023-10-2650569 (Daniel Shahaf): main keymap defaults to emacsBart Schaefer1-9/+3
Tweaked to make the sample .zshrc code better match the former C code, and to remove the declaration of no-longer-used variable "ed".
2023-10-2652244: Fix a batch of minor defects reported by Coverity.Bart Schaefer2-10/+7
Coverity defects 1547831, 1547826 (remove unused function), 1521551, 1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789, 1255787, 1255782, 1255750
2023-10-1651490: Use time_t for lastt which stores result of time(0)Mikael Magnusson1-2/+2
Coverity complained about this, and possibly some more people would in 15 years
2023-10-1152189: ignore compadd -M if -U also specified as they don't make sense togetherOliver Kiddle1-1/+3
This fixes df completion.
2023-08-22users/29175: Don't need to forget zle edits if noneNojus Gudinavičius1-0/+12
2023-07-2651950 (tweak per 51949): correct Thingy refcount in raw_getbyte()Bart Schaefer1-1/+2
2023-05-11users/29070: clean up tokens in cmdstr before compctl completionBart Schaefer1-0/+2
2023-04-0351597: fix 'vared -c var' when var is unsetJun-ichi Takimoto1-1/+2
2023-03-0551483: Enable assignment and expansion of parameters with ksh-like namespace ↵Bart Schaefer2-5/+5
prefixes.
2023-02-2851491: Check should use zlemetacs instead of zlecsMikael Magnusson1-1/+1
Coverity noticed that this first branch of the if statement has "meta" added to all the variable names except this zlecs at the end, so change it to match.
2023-02-1751447: silence compiler maybe-uninitialized warning by combining a couple of ↵Oliver Kiddle1-12/+13
variables
2023-02-0951320, 51383: fixes to prevent later reappearance of old attributesOliver Kiddle3-1/+5
Also associated test updates and a test fix for TERM=dumb.
2023-01-2151310: zle -F handlers preserve LASTWIDGETBart Schaefer1-0/+2
Also fix email address in an old ChangeLog entry
2023-01-1151295: where the end of a region coincides with the end of PREDISPLAY, don't ↵Oliver Kiddle1-3/+3
extend it to include new text Also fix issue where an int was used for a copy of attributes which breaks if int is smaller than zattr.
2023-01-1051292: fix dynamic updates of region_highlight to account for PREDISPLAYOliver Kiddle1-4/+4
2023-01-1051291: support for highlighting ellipses in the line editorOliver Kiddle1-25/+35
2023-01-1051290: fix display of control characters with SINGLE_LINE_ZLE setOliver Kiddle1-3/+3
2023-01-1051289: don't disable non-colour attributes in prompts for SINGLE_LINE_ZLE ↵Oliver Kiddle1-2/+0
and remove superfluous extra escapes to disable attributes
2023-01-1051281: keep track of attributes left on at the end of left and right prompts ↵Oliver Kiddle2-26/+22
and reapply them explicitly as appropriate
2023-01-1051280: add support for italic and faint fonts in the line editorOliver Kiddle1-23/+3
2023-01-1051258, 51272: refactor handling of terminal attributes, removing OFF flags ↵Oliver Kiddle6-311/+140
in zattr
2023-01-08unposted: In a comment, replace a C variables glob pattern with its matches, ↵Daniel Shahaf1-2/+2
for greppability.
2022-12-1651212: remove STOUC() macroOliver Kiddle8-28/+28
This served as a workaround for ancient compilers where casts to unsigned char were broken.
2022-12-1651215: consume whole CSI sequences from the inputOliver Kiddle1-2/+25
This affects CSI sequences that aren't explicitly bound but arrive within the usual KEYTIMEOUT time limits. A single undefined-key widget is run instead of unintended bindings for Escape and other characters in the sequence.
2022-11-1750934: use OSC 52 escape sequence when copying to "* or "+ vi buffersOliver Kiddle3-4/+40
2022-10-1750736: silence use-after-free warning (gcc-12.2)Wesley Schwengle1-4/+4
2022-06-0350325: revert 38150 and fix in calling function cfp_matcher_range() insteadBart Schaefer2-2/+2
2022-04-1150042: Another fix for 49915Mikael Magnusson1-1/+1
If the last element in the list is a duplicate, we would walk off the end
2022-04-0549989: Single byte versions of nice quoting.Peter Stephenson1-4/+2
Align interfaces for "nice" printing of characters with those for multibyte to make more available in single-byte compilation.
2022-04-04unposted: Fix typo from 49955Bart Schaefer1-1/+1
2022-04-0449955: Src/glob.c: fix bad free in incremental-pattern-search matchingBart Schaefer1-0/+2
2022-04-0349957: Brown paper bag for 49915Mikael Magnusson1-2/+2
The code would crash when n == 0. There's not really any point doing any of this when n is 0 so just skip everything. It also tried to NULL terminate a list a little to eagerly.
2022-03-3049926: remove unused variable from 49915Mikael Magnusson1-1/+1
2022-03-3049820: Fix a crash when completing with combination of -Q and bracesMikael Magnusson1-3/+4
minimal reproducer .zshrc: zstyle ':completion:*' completer _oldlist _complete setopt nolistambiguous autoload compinit; compinit compdef _foo foo;_foo() { compadd -Q -- stash@{{0,1}} }
2022-03-3049915: Efficient dedup for unsorted completionsMikael Magnusson2-20/+35
2022-03-3049893: Fix comments for UNIQCON/ALLMikael Magnusson2-4/+10