File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ func (o *Operation) ioloop() {
109
109
keepInSearchMode := false
110
110
keepInCompleteMode := false
111
111
r := o .t .ReadRune ()
112
+
112
113
if o .GetConfig ().FuncFilterInputRune != nil {
113
114
var process bool
114
115
r , process = o .GetConfig ().FuncFilterInputRune (r )
115
116
if ! process {
117
+ o .t .KickRead ()
116
118
o .buf .Refresh (nil ) // to refresh the line
117
119
continue // ignore this rune
118
120
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ type RuneBuffer struct {
35
35
sync.Mutex
36
36
}
37
37
38
- func (r * RuneBuffer ) pushKill (text []rune ) {
38
+ func (r * RuneBuffer ) pushKill (text []rune ) {
39
39
r .lastKill = append ([]rune {}, text ... )
40
40
}
41
41
@@ -221,7 +221,7 @@ func (r *RuneBuffer) DeleteWord() {
221
221
}
222
222
for i := init + 1 ; i < len (r .buf ); i ++ {
223
223
if ! IsWordBreak (r .buf [i ]) && IsWordBreak (r .buf [i - 1 ]) {
224
- r .pushKill (r .buf [r .idx : i - 1 ])
224
+ r .pushKill (r .buf [r .idx : i - 1 ])
225
225
r .Refresh (func () {
226
226
r .buf = append (r .buf [:r .idx ], r .buf [i - 1 :]... )
227
227
})
@@ -350,7 +350,7 @@ func (r *RuneBuffer) Yank() {
350
350
return
351
351
}
352
352
r .Refresh (func () {
353
- buf := make ([]rune , 0 , len (r .buf ) + len (r .lastKill ))
353
+ buf := make ([]rune , 0 , len (r .buf )+ len (r .lastKill ))
354
354
buf = append (buf , r .buf [:r .idx ]... )
355
355
buf = append (buf , r .lastKill ... )
356
356
buf = append (buf , r .buf [r .idx :]... )
You can’t perform that action at this time.
0 commit comments