1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-18 03:11:15 +02:00
Commit graph

72 commits

Author SHA1 Message Date
Peter Stephenson
b0e0d901b2 users/13375: trivial rewrite to ternary expression 2008-10-23 08:52:02 +00:00
Peter Stephenson
38e0badcc3 25236: don't recalculate prompt if not redisplaying 2008-07-22 19:54:29 +00:00
Peter Stephenson
bd70d684fc 25002: only ZLE should update attributes resulting from prompt expansion 2008-05-12 13:50:42 +00:00
Peter Stephenson
c811a18d44 24986: prompt escapes for colours 2008-05-09 17:33:49 +00:00
Peter Stephenson
0ef4ecefc7 24957: better sanity checking of colour ranges
always use termcap for numeric ranges where available
2008-05-06 21:33:10 +00:00
Peter Stephenson
74e5fcee38 24953: "default" zle_highlight; fix allocation bug in colour sequences 2008-05-06 18:19:14 +00:00
Peter Stephenson
88126c0110 24932: try to fix up code that regularizes attributes after right prompt 2008-05-06 09:23:06 +00:00
Peter Stephenson
fadf4a55ff 24899: make colour escape sequences configurable
allow ANSI colour names
2008-05-01 10:58:23 +00:00
Peter Stephenson
497a34d249 24894: enable colouring of highlighted text in editor 2008-04-29 17:19:26 +00:00
Peter Stephenson
f5ed24f47e 24893: duplicate statusline to avoid crashes when constant 2008-04-29 08:43:38 +00:00
Peter Stephenson
91a10708b2 24822: highlighting of isearch matches
unposted: not in NEWS that COMBINING_CHARS is not on by default
2008-04-26 22:52:50 +00:00
Peter Stephenson
2cec7aae44 24861 (with tweaks): logic to use alternative wcwidth() if needed;
slightly improve test for overwriting with combining characters.
2008-04-22 15:08:04 +00:00
Peter Stephenson
5a0c547e91 24856: add IS_COMBINING() and IS_BASECHAR() and widen tests 2008-04-21 11:49:55 +00:00
Peter Stephenson
b8ec06c870 24853: use metafied strings for inner loops over history 2008-04-20 21:17:29 +00:00
Wayne Davison
23bbf18d41 Fixed some compiler warnings about signed/unsigned issues. 2008-04-18 13:50:53 +00:00
Peter Stephenson
97dcf15556 24808: initial support for combining characters in zle 2008-04-13 16:58:42 +00:00
Peter Stephenson
7683ec28aa 24792: try to be safer about turning off attributes when refreshing 2008-04-04 16:32:15 +00:00
Peter Stephenson
e5d8a42249 24787: reset region_highlight when finished editing command line 2008-04-03 15:33:39 +00:00
Peter Stephenson
2c5ea79f17 24782: initial go at highlighting of characters in zle command lines 2008-04-03 11:38:55 +00:00
Peter Stephenson
088e8a9c8d 24434: handle unprintable and zero-width wide characters
by displaying as hex
2008-01-22 10:14:01 +00:00
Peter Stephenson
4497b2b1b7 24371: bug refreshing large scrolling history entry 2008-01-08 15:07:02 +00:00
Peter Stephenson
104fccc31e 24362: problem redrawing line with multibyte character first 2008-01-05 13:12:56 +00:00
Geoff Wing
a5dd64f024 24098: Fix my botch with 23924, rework out new prompts and
their lengths before use in resetvideo().
2007-11-23 00:19:23 +00:00
Geoff Wing
29a869d5a8 23924: Improve synchronising of character attributes with other
output routines
2007-10-19 01:33:09 +00:00
Peter Stephenson
55b7a07a7e 23791: use VARARR for MB_CUR_MAX
users/11791: remove mysterious comment around emulate -L zsh in
incremental-complete-word
2007-08-22 09:25:32 +00:00
Peter Stephenson
3d6f87fccc fix output of prompt in single line ZLE 2007-03-19 22:27:45 +00:00
Wayne Davison
4817964a07 Got rid of unused-variable compiler warning when compiling a
non-multibyte zsh.
2006-01-13 17:46:09 +00:00
Wayne Davison
70de60a962 The new "eol" var was being set in singlerefresh(), but not accessed. 2006-01-12 08:33:15 +00:00
Wayne Davison
542797377a - When mbrtowc() returns -2 when given all the remaining chars in a
string, set an end-of-line flag and avoid calling mbrtowc() again
  for any of the incomplete characters that remain in the string.
- Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 00:51:50 +00:00
Wayne Davison
9cf3f9ad71 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's > 0, as that won't
work on a system where an int is larger than a size_t.
2006-01-09 00:17:24 +00:00
Peter Stephenson
09a854378a 22009: another double-width character fix 2005-11-21 15:22:12 +00:00
Peter Stephenson
8a9c9d8078 21971: multibyte version of pfxlen() 2005-11-01 23:10:17 +00:00
Wayne Davison
f53996f14b I just noticed that zsh's default icntrl() macro returns true for
chars 128 - 159, so the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))"
code needed to be updated to reflect this.
2005-11-01 04:02:02 +00:00
Wayne Davison
b6fefba340 - Improved all the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" code
lines to work in both normal and multibyte mode without needing
  conditional code.
- A couple brace-position twiddles.
2005-11-01 03:26:54 +00:00
Peter Stephenson
4f683c2eea 21957: more wide-character refresh stuff 2005-10-30 20:39:38 +00:00
Wayne Davison
0b31102c4c Got rid of a use of WEOF when MULTIBYTE_SUPPORT is not defined
(which fixed a signed vs unsigned comparison compiler warning).
2005-10-28 22:13:44 +00:00
Peter Stephenson
aea7715261 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
use multibyte versions of nicechar wherever possible.
2005-10-28 17:34:33 +00:00
Peter Stephenson
5f11a38bea 21942: another extra-wide character fix 2005-10-28 12:52:22 +00:00
Peter Stephenson
60a99da054 21936: bug deleting extra-wide character 2005-10-25 23:13:40 +00:00
Peter Stephenson
7c442d2e06 21930: handle extra-wide characters at end of line 2005-10-24 16:58:41 +00:00
Peter Stephenson
e3856ef52e remove a couple of TODOs 2005-10-21 22:40:30 +00:00
Wayne Davison
99947c0c95 Got rid of a pointer-type warning by adding a definition for a
REFRESH_CHAR type and using it to define nullchr (it was using
ZLE_INT_T).
2005-10-19 23:45:06 +00:00
Peter Stephenson
26e60b1f3a 21887: Display characters wider than one screen cell correctly. 2005-10-19 20:40:24 +00:00
Peter Stephenson
feddc4199b 21885: Convert some refresh macros into functions. 2005-10-19 18:23:06 +00:00
Peter Stephenson
bd678526b3 21731: handle multibyte characters in prompts correctly 2005-09-17 21:39:07 +00:00
Andrey Borzenkov
f570dd59e3 21622: fix recursive completion call in zrefresh() 2005-08-15 17:30:58 +00:00
Wayne Davison
68f073faa2 Changed several instances of ZWC() used on a string to ZWS(). 2005-08-11 18:40:53 +00:00
Peter Stephenson
eb09406787 21593: character arrays wrongly declared with ZLE_UNICODE_SUPPORT 2005-08-10 13:21:15 +00:00
Peter Stephenson
2a888b3d5a c.f. 21590: metafy_line()/unmetafy_line() now support wide characters 2005-08-10 10:56:40 +00:00
Peter Stephenson
7fb20a71cb correct 20928 2005-03-04 21:40:37 +00:00