1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-02 16:40:53 +01:00
Commit graph

1257 commits

Author SHA1 Message Date
Oliver Kiddle
57248b8883 52750: remove ansi2knr support for old pre-ansi K&R compilers 2024-03-18 20:02:34 +01:00
Oliver Kiddle
05c7b21e2b 52646: extend support for highlight groups to completion explanation strings and WATCHFMT 2024-03-05 00:11:02 +01:00
Bart Schaefer
c039a74e09 Typos in previous commit comments 2024-02-03 19:55:41 -08:00
Bart Schaefer
ce8909b494 unposted: Record as comments some notes about namespace usage exceptions. 2024-02-03 19:52:39 -08:00
Oliver Kiddle
85545af42b 52500: add layer token to zle attributes
This provide control over the precedence of highlighting where
different regions overlap.
2024-01-28 00:47:36 +01:00
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.
2024-01-28 00:23:43 +01:00
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.
2024-01-28 00:23:22 +01:00
Oliver Kiddle
25f5618b17 52382: avoid the non-standard \e in C code, preferring \033 2023-12-13 11:28:00 +01:00
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".
2023-10-26 20:55:45 -07:00
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
2023-10-26 08:27:18 -07:00
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
2023-10-16 10:36:12 +02:00
Oliver Kiddle
70320635b4 52189: ignore compadd -M if -U also specified as they don't make sense together
This fixes df completion.
2023-10-11 01:06:50 +02:00
Nojus Gudinavičius
094f230e36 users/29175: Don't need to forget zle edits if none 2023-08-22 14:29:44 +01:00
Bart Schaefer
fb5a6a871c 51950 (tweak per 51949): correct Thingy refcount in raw_getbyte() 2023-07-26 19:49:50 -07:00
Bart Schaefer
8943b5e450 users/29070: clean up tokens in cmdstr before compctl completion 2023-05-11 12:37:52 -07:00
Jun-ichi Takimoto
b411dc5702 51597: fix 'vared -c var' when var is unset 2023-04-03 16:04:31 +09:00
Bart Schaefer
a9ba166216 51483: Enable assignment and expansion of parameters with ksh-like namespace prefixes. 2023-03-05 14:03:42 -08:00
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.
2023-02-28 14:56:06 +01:00
Oliver Kiddle
6f4aa1d949 51447: silence compiler maybe-uninitialized warning by combining a couple of variables 2023-02-17 23:38:14 +01:00
Oliver Kiddle
6502d05897 51320, 51383: fixes to prevent later reappearance of old attributes
Also associated test updates and a test fix for TERM=dumb.
2023-02-09 00:10:19 +01:00
Bart Schaefer
f93ad02b94 51310: zle -F handlers preserve LASTWIDGET
Also fix email address in an old ChangeLog entry
2023-01-21 19:18:15 -08:00
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.
2023-01-11 15:58:55 +01:00
Oliver Kiddle
b513ca21c8 51292: fix dynamic updates of region_highlight to account for PREDISPLAY 2023-01-10 21:17:24 +01:00
Oliver Kiddle
be2c91bbc3 51291: support for highlighting ellipses in the line editor 2023-01-10 21:13:52 +01:00
Oliver Kiddle
498b771a82 51290: fix display of control characters with SINGLE_LINE_ZLE set 2023-01-10 21:09:54 +01:00
Oliver Kiddle
cc672f1c3b 51289: don't disable non-colour attributes in prompts for SINGLE_LINE_ZLE and remove superfluous extra escapes to disable attributes 2023-01-10 21:06:55 +01:00
Oliver Kiddle
9d99a01367 51281: keep track of attributes left on at the end of left and right prompts and reapply them explicitly as appropriate 2023-01-10 21:02:16 +01:00
Oliver Kiddle
c01479a2ed 51280: add support for italic and faint fonts in the line editor 2023-01-10 20:57:03 +01:00
Oliver Kiddle
667ead3a64 51258, 51272: refactor handling of terminal attributes, removing OFF flags in zattr 2023-01-10 20:53:17 +01:00
Daniel Shahaf
81684e334d unposted: In a comment, replace a C variables glob pattern with its matches, for greppability. 2023-01-08 13:09:37 +00:00
Oliver Kiddle
a73c705b0c 51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
2022-12-16 23:28:10 +01:00
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.
2022-12-16 23:23:53 +01:00
Oliver Kiddle
c4d557bb0a 50934: use OSC 52 escape sequence when copying to "* or "+ vi buffers 2022-11-17 20:05:12 +01:00
Wesley Schwengle
727b493e2b 50736: silence use-after-free warning (gcc-12.2) 2022-10-17 13:13:13 +09:00
Bart Schaefer
3e3cfabcc7 50325: revert 38150 and fix in calling function cfp_matcher_range() instead 2022-06-03 20:08:15 -07:00
Mikael Magnusson
1039b09c0c 50042: Another fix for 49915
If the last element in the list is a duplicate, we would walk off the end
2022-04-11 23:31:11 +02:00
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.
2022-04-05 09:40:07 +01:00
Bart Schaefer
f27e48827c unposted: Fix typo from 49955 2022-04-04 10:19:57 -07:00
Bart Schaefer
c77cdb27db 49955: Src/glob.c: fix bad free in incremental-pattern-search matching 2022-04-04 09:14:59 -07:00
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.
2022-04-03 11:28:14 +02:00
Mikael Magnusson
774c634d2e 49926: remove unused variable from 49915 2022-03-30 20:34:37 +02:00
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}} }
2022-03-30 08:08:09 +02:00
Mikael Magnusson
6a9b3bb290 49915: Efficient dedup for unsorted completions 2022-03-30 08:07:39 +02:00
Mikael Magnusson
48be30e530 49893: Fix comments for UNIQCON/ALL 2022-03-30 08:07:39 +02:00
Peter Stephenson
1e814ba48b 49890: Avoid scanning unallocated memory in saved command line. 2022-03-28 15:27:51 +01:00
m0viefreak
d82604843b 38150: fix off-by-one error in matcher spec parsing 2021-12-24 13:09:25 -08:00
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 +.
2021-12-16 14:27:59 +01:00
Oliver Kiddle
7cb980b536 49518: fix exclusions for mixed - and + stacked options 2021-12-14 12:30:55 +01:00
Dimitris Apostolou
356dcb20ce github #82: Fix typos 2021-11-12 23:54:34 +01:00
Jun-ichi Takimoto
b067ab08d6 49535: fix completion for ${<TAB> and ${(a)<TAB> 2021-11-01 23:33:57 +09:00