1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00
Commit graph

1058 commits

Author SHA1 Message Date
Oliver Kiddle
f760bd6064 39026: pattern specified with _arguments' -A option shouldn't be checked against words after the cursor 2016-08-13 01:32:31 +02:00
Peter Stephenson
04003e038a 39031: Ensure variables in transpose-words are initialised 2016-08-12 12:56:34 +01:00
Han Pingtian
b2be8e1b6e 38983: Make transpose-words handle numeric arguments sensibly 2016-08-12 09:51:55 +01:00
Barton E. Schaefer
ac0dcc9a63 unposted: fix typo in comment 2016-08-06 20:07:26 -07:00
Daniel Shahaf
81409caee7 workers/38995 (in part): compfiles: Add reverse-engineered documentation breadcrumbs. 2016-08-05 12:43:57 +00:00
Daniel Shahaf
8d7b9d013d 38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do. 2016-07-28 18:12:19 +00:00
Oliver Kiddle
c32bb6a11c 38845: reset region_active before entering zle
It was done on exit but before zle-line-finish.
Also reword documentation on region to better cover vi mode.
2016-07-17 12:09:24 +02:00
Oliver Kiddle
13f4bb2936 38810: fix cursor positioning and repeated invocations when widgets used from emacs mode 2016-07-08 23:00:44 +02:00
Oliver Kiddle
e87aa8941f 38809: fix tracking of colour attributes and restore them when turning bold off 2016-07-08 22:28:15 +02:00
Oliver Kiddle
a73ae70e82 38770: vi upper/lowercase widgets and shell widget example that reads a vi movement 2016-06-29 17:05:06 +02:00
Oliver Kiddle
e83489fc4b 38714: add x: syntax to match specs to make it possible to disable match specs hardcoded in completion functions 2016-06-22 01:37:07 +02:00
Oliver Kiddle
3fdf1f16e3 38540: fix undo problem by not moving the current change when only undoing a history line change 2016-06-02 12:48:10 +02:00
Barton E. Schaefer
597fa5ee5d 38463: use immortal widgets in .safe keymap 2016-05-10 13:21:43 -07:00
m0viefreak
f06be0ffcf 38291: Change names of ISEARCH_* parameters to ISEARCHMATCH_* 2016-04-23 21:28:20 +00:00
Oliver Kiddle
267f945ffe 38287: fix position for the end of a visual selection range for the cursor on an empty last line in the buffer 2016-04-14 15:52:50 +02:00
Oliver Kiddle
c7eead3950 38286: cursor correction following yank-pop is only applicable to vi command mode 2016-04-14 15:52:44 +02:00
Barton E. Schaefer
b911398064 38248: fix word position calculation when completing on or just before a redirection operator
The completion result is still in need of some repair; e.g., if the first
thing on the line is the redirection, completion before it is not taken
to be in command position, and in this and other cases a necessary space
is not inserted between the completed word and the redirection.
2016-04-07 20:24:43 -07:00
Barton E. Schaefer
70fb93b64e 38229: fix cursor placement calculation when completing in empty double quotes 2016-04-05 16:14:55 -07:00
Peter Stephenson
2b7035d974 38241: ungetkeycmd() needs to unmetafy key string.
Use the new function to simplify memory management in prefix handling.

Third time lucky.
2016-04-04 14:54:54 +01:00
Barton E. Schaefer
21202e7b95 38191: additional re-entrancy checks in reexpandprompt()
Do not free global pointers until after promptexpand() in case they are
referenced from signal handlers, and check for window size changes during
promptexpand().
2016-03-21 15:46:59 -07:00
m0viefreak
cbc44bd64a 38145: ZLE parameters for isearch and completion suffixes 2016-03-21 09:43:29 +00:00
Daniel Shahaf
c82ce14950 38135: internal: bin_compadd: Add a few comments. 2016-03-11 22:19:09 +00:00
Oliver Kiddle
8c29b34032 38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion 2016-03-07 13:15:40 +01:00
Barton E. Schaefer
564fb25e82 38048: fix "zle redisplay" when called while a listing is below the prompt 2016-03-03 13:03:40 -08:00
Barton E. Schaefer
c3f4d18e4f 38001: clear-screen re-expands prompts 2016-02-17 20:04:25 -08:00
Barton E. Schaefer
f07a1bd009 37961: fix crash on bad memory access
In interactive menuselection, use of "compadd -x" (e.g. the "warnings"
zstyle) may have replaced the completion list, so skip highlighting of
the current selection until a subsequent keystroke has regenerated the
original listing
2016-02-14 11:13:17 -08:00
Barton E. Schaefer
1b923f69c7 37927: recreate local keymaps as necessary in case the user has deleted them 2016-02-13 12:51:12 -08:00
Jun-ichi Takimoto
a4020e10a3 37868: add 'static' to file local variables 2016-02-03 01:25:33 +09:00
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Peter Stephenson
1d8b528522 37643: Reset interrupt on key input in menu selection.
We don't need to propagate the interrupt further as the interrupt
causes the key to be empty, which will exit the widget.  We
need to reset the condition as zrefresh() is now more sensitive
to errors since 36416 / 32f5d3d8.
2016-01-15 12:49:42 +00:00
Daniel Shahaf
5cf6ae0056 37590: Invoke zle-line-pre-redraw during isearch. 2016-01-14 00:04:12 +00:00
Daniel Shahaf
fcd13cdaae 37456: Have zle_highlight=(none) disable paste highlighting
Before this change, zle_highlight=(paste:none) worked,
but zle_highlight=(none) didn't.
2015-12-31 01:16:06 +00:00
Mikael Magnusson
c3ea3ffa73 36650: Add zle-line-pre-redraw hook for highlighting 2015-12-19 13:21:12 +01:00
Peter Stephenson
0bd903abca 37405: Fix self-insert binding for multibyte sequences.
This makes it work even if the self-insert applies to a sequence longer
than an initial byte, including the case of a complete binding to a full
character sequence.
2015-12-15 12:41:20 +00:00
Peter Stephenson
59de978c7e users/21071: Fix binding of multibyte sequences.
There was a problem if the first byte was already bound to
self-insert.
2015-12-08 10:56:17 +00:00
Peter Stephenson
0c2d823a79 37337: Delay freeing widget until not in use. 2015-12-07 14:32:52 +00:00
Peter Stephenson
ae4cf7b743 37186: a couple more WARN_CREATE_GLOBAL fixes 2015-11-22 16:06:20 +00:00
Daniel Shahaf
9ab9da49f7 unposted: Make $EDITOR's jump-to-matching-brace happy. 2015-11-13 20:18:25 +00:00
Peter Stephenson
830d54e629 37092: make nested ${(P)name} properly refer to parameter on return 2015-11-11 18:04:20 +00:00
Peter Stephenson
f1312d1e22 37091: clear lastline and lastlinesz when freeing 2015-11-11 16:09:28 +00:00
Peter Stephenson
d45a68c546 36974: fix some functions with empty argument lists 2015-10-27 09:28:36 +00:00
Peter Stephenson
11ca38c6d9 users/20825: fix crash when complex completion hooks.
get_undo_current_change() needs protecting against execution in
completion environment.
2015-10-26 10:00:54 +00:00
Jun-ichi Takimoto
a40417929c 36911: '-optarg' should not match optspec '-opt='
Remove the requirement that -xy= should come before -x= in the
list of optspecs passed to _arguments.
2015-10-25 23:42:03 +09:00
Mikael Magnusson
0626be9e3c unposted: define zle_usable before using it (reported in 36741) 2015-10-02 20:41:53 +02:00
Mikael Magnusson
fa72e54712 unposted: zle_thingy: return a value in bin_zle_flags 2015-10-01 20:24:45 +02:00
Mikael Magnusson
a855d7bd24 36709: zle -f from inside widget to set flags and make yank start/end zle params writable 2015-10-01 03:51:44 +02:00
Peter Stephenson
f9d7651c25 36682: expand pattern interface to optimise unmetafication 2015-09-28 20:31:51 +01:00
Barton E. Schaefer
50721a1986 36641: fix multibyte handling in incremental search during menu selection 2015-09-26 13:46:20 -07:00
Daniel Shahaf
8165b488cb unposted: zle: Document the C helper function processcmd().
Also, tweak the docstring of zlelineasstring().
2015-09-25 23:38:41 +00:00
Daniel Shahaf
1b5987cdb1 unposted: Followup to 36586: Change C99 comment syntax to the C89 syntax. 2015-09-23 21:41:13 +00:00