Oliver Kiddle
57248b8883
52750: remove ansi2knr support for old pre-ansi K&R compilers
2 months ago
Oliver Kiddle
05c7b21e2b
52646: extend support for highlight groups to completion explanation strings and WATCHFMT
3 months ago
Bart Schaefer
c039a74e09
Typos in previous commit comments
4 months ago
Bart Schaefer
ce8909b494
unposted: Record as comments some notes about namespace usage exceptions.
4 months ago
Oliver Kiddle
85545af42b
52500: add layer token to zle attributes
...
This provide control over the precedence of highlighting where
different regions overlap.
4 months ago
Jörg Sommer
98affe1115
52441: zle_vi: Mark variables with const init as const
...
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.
4 months ago
Jörg Sommer
ce033e2b9c
52440: zle.textobjects: Mark variables as const
...
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.
4 months ago
Oliver Kiddle
25f5618b17
52382: avoid the non-standard \e in C code, preferring \033
5 months ago
Bart Schaefer
f36fccbb84
50569 (Daniel Shahaf): main keymap defaults to emacs
...
Tweaked to make the sample .zshrc code better match the former C code,
and to remove the declaration of no-longer-used variable "ed".
7 months ago
Bart Schaefer
98a6892cb1
52244: Fix a batch of minor defects reported by Coverity.
...
Coverity defects 1547831, 1547826 (remove unused function), 1521551,
1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789,
1255787, 1255782, 1255750
7 months ago
Mikael Magnusson
6b34f3dc14
51490: Use time_t for lastt which stores result of time(0)
...
Coverity complained about this, and possibly some more people would in 15
years
7 months ago
Oliver Kiddle
70320635b4
52189: ignore compadd -M if -U also specified as they don't make sense together
...
This fixes df completion.
7 months ago
Nojus Gudinavičius
094f230e36
users/29175: Don't need to forget zle edits if none
9 months ago
Bart Schaefer
fb5a6a871c
51950 (tweak per 51949): correct Thingy refcount in raw_getbyte()
10 months ago
Bart Schaefer
8943b5e450
users/29070: clean up tokens in cmdstr before compctl completion
1 year ago
Jun-ichi Takimoto
b411dc5702
51597: fix 'vared -c var' when var is unset
1 year ago
Bart Schaefer
a9ba166216
51483: Enable assignment and expansion of parameters with ksh-like namespace prefixes.
1 year ago
Mikael Magnusson
86a5278f9f
51491: Check should use zlemetacs instead of zlecs
...
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.
1 year ago
Oliver Kiddle
6f4aa1d949
51447: silence compiler maybe-uninitialized warning by combining a couple of variables
1 year ago
Oliver Kiddle
6502d05897
51320, 51383: fixes to prevent later reappearance of old attributes
...
Also associated test updates and a test fix for TERM=dumb.
1 year ago
Bart Schaefer
f93ad02b94
51310: zle -F handlers preserve LASTWIDGET
...
Also fix email address in an old ChangeLog entry
1 year ago
Oliver Kiddle
246b7c7505
51295: where the end of a region coincides with the end of PREDISPLAY, don't 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.
1 year ago
Oliver Kiddle
b513ca21c8
51292: fix dynamic updates of region_highlight to account for PREDISPLAY
1 year ago
Oliver Kiddle
be2c91bbc3
51291: support for highlighting ellipses in the line editor
1 year ago
Oliver Kiddle
498b771a82
51290: fix display of control characters with SINGLE_LINE_ZLE set
1 year ago
Oliver Kiddle
cc672f1c3b
51289: don't disable non-colour attributes in prompts for SINGLE_LINE_ZLE and remove superfluous extra escapes to disable attributes
1 year ago
Oliver Kiddle
9d99a01367
51281: keep track of attributes left on at the end of left and right prompts and reapply them explicitly as appropriate
1 year ago
Oliver Kiddle
c01479a2ed
51280: add support for italic and faint fonts in the line editor
1 year ago
Oliver Kiddle
667ead3a64
51258, 51272: refactor handling of terminal attributes, removing OFF flags in zattr
1 year ago
Daniel Shahaf
81684e334d
unposted: In a comment, replace a C variables glob pattern with its matches, for greppability.
1 year ago
Oliver Kiddle
a73c705b0c
51212: remove STOUC() macro
...
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
1 year ago
Oliver Kiddle
7fb6c133bf
51215: consume whole CSI sequences from the input
...
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.
1 year ago
Oliver Kiddle
c4d557bb0a
50934: use OSC 52 escape sequence when copying to "* or "+ vi buffers
2 years ago
Wesley Schwengle
727b493e2b
50736: silence use-after-free warning (gcc-12.2)
2 years ago
Bart Schaefer
3e3cfabcc7
50325: revert 38150 and fix in calling function cfp_matcher_range() instead
2 years ago
Mikael Magnusson
1039b09c0c
50042: Another fix for 49915
...
If the last element in the list is a duplicate, we would walk off the end
2 years ago
Peter Stephenson
02747bbbd3
49989: Single byte versions of nice quoting.
...
Align interfaces for "nice" printing of characters with those for
multibyte to make more available in single-byte compilation.
2 years ago
Bart Schaefer
f27e48827c
unposted: Fix typo from 49955
2 years ago
Bart Schaefer
c77cdb27db
49955: Src/glob.c: fix bad free in incremental-pattern-search matching
2 years ago
Mikael Magnusson
9eda397354
49957: Brown paper bag for 49915
...
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.
2 years ago
Mikael Magnusson
774c634d2e
49926: remove unused variable from 49915
2 years ago
Mikael Magnusson
054ccf7666
49820: Fix a crash when completing with combination of -Q and braces
...
minimal reproducer .zshrc:
zstyle ':completion:*' completer _oldlist _complete
setopt nolistambiguous
autoload compinit; compinit
compdef _foo foo;_foo() { compadd -Q -- stash@{{0,1}} }
2 years ago
Mikael Magnusson
6a9b3bb290
49915: Efficient dedup for unsorted completions
2 years ago
Mikael Magnusson
48be30e530
49893: Fix comments for UNIQCON/ALL
2 years ago
Peter Stephenson
1e814ba48b
49890: Avoid scanning unallocated memory in saved command line.
2 years ago
m0viefreak
d82604843b
38150: fix off-by-one error in matcher spec parsing
2 years ago
Oliver Kiddle
6b763233b2
49653: fix array indexing issue introduced with 49518 due to using decimal rather than hex 20
...
Also avoid comparing the current word against all options when the word
doesn't start with - or +.
2 years ago
Oliver Kiddle
7cb980b536
49518: fix exclusions for mixed - and + stacked options
2 years ago
Dimitris Apostolou
356dcb20ce
github #82 : Fix typos
3 years ago
Jun-ichi Takimoto
b067ab08d6
49535: fix completion for ${<TAB> and ${(a)<TAB>
3 years ago