File tree Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v0.6.2
4
+ - Fixed bug deleting the last character in the buffer in vi mode (#450 )
5
+ - Degrade gracefully when user doesn't have ` zsh/system ` module installed (#447 )
6
+
3
7
## v0.6.1
4
8
- Fixed bug occurring when ` _complete ` had been aliased (#443 )
5
9
Original file line number Diff line number Diff line change 2
2
3
3
_ [ Fish] ( http://fishshell.com/ ) -like fast/unobtrusive autosuggestions for zsh._
4
4
5
- It suggests commands as you type.
5
+ It suggests commands as you type based on history and completions .
6
6
7
7
Requirements: Zsh v4.3.11 or later
8
8
Original file line number Diff line number Diff line change 1
- v0.6.1
1
+ v0.6.2
Original file line number Diff line number Diff line change 63
63
end
64
64
end
65
65
end
66
- end
67
66
67
+ describe '`vi-delete`' do
68
+ it 'should be able to remove the last character in the buffer' do
69
+ skip 'deleting last char did not work below zsh version 5.0.8' if session . zsh_version < Gem ::Version . new ( '5.0.8' )
70
+
71
+ session .
72
+ send_string ( 'echo foo' ) .
73
+ send_keys ( 'escape' ) .
74
+ send_keys ( 'd' ) .
75
+ send_keys ( 'l' )
76
+
77
+ wait_for { session . content } . to eq ( 'echo fo' )
78
+ end
79
+ end
80
+ end
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ _zsh_autosuggest_accept() {
136
136
unset POSTDISPLAY
137
137
138
138
# Move the cursor to the end of the buffer
139
- CURSOR=${# BUFFER }
139
+ CURSOR=${max_cursor_pos }
140
140
fi
141
141
142
142
_zsh_autosuggest_invoke_original_widget $@
Original file line number Diff line number Diff line change 1
1
# Fish-like fast/unobtrusive autosuggestions for zsh.
2
2
# https://github.com/zsh-users/zsh-autosuggestions
3
- # v0.6.1
3
+ # v0.6.2
4
4
# Copyright (c) 2013 Thiago de Arruda
5
5
# Copyright (c) 2016-2019 Eric Freese
6
6
#
@@ -398,7 +398,7 @@ _zsh_autosuggest_accept() {
398
398
unset POSTDISPLAY
399
399
400
400
# Move the cursor to the end of the buffer
401
- CURSOR=${# BUFFER }
401
+ CURSOR=${max_cursor_pos }
402
402
fi
403
403
404
404
_zsh_autosuggest_invoke_original_widget $@
You can’t perform that action at this time.
0 commit comments