File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ func (c *Cmdline) show(args []interface{}) {
121
121
c .content .prompt = prompt
122
122
text := c .getText ("" )
123
123
palette .setPattern (text )
124
+ c .shown = true
124
125
c .cursorMove ()
125
126
if isResize {
126
127
palette .resize ()
@@ -130,7 +131,6 @@ func (c *Cmdline) show(args []interface{}) {
130
131
palette .scrollCol .Hide ()
131
132
}
132
133
palette .show ()
133
- c .shown = true
134
134
}
135
135
136
136
func (c * Cmdline ) showAddition () {
Original file line number Diff line number Diff line change @@ -621,9 +621,11 @@ func (c *Cursor) update() {
621
621
c .updateCursorShape ()
622
622
623
623
// if ext_cmdline is true
624
- if c .ws .palette != nil {
625
- if c .ws .palette . widget . IsVisible () {
624
+ if c .ws .cmdline != nil {
625
+ if c .ws .cmdline . shown {
626
626
c .redraw ()
627
+ // See changepos() in cmdline.go
628
+
627
629
return
628
630
}
629
631
}
Original file line number Diff line number Diff line change @@ -300,8 +300,7 @@ func (p *Palette) cursorMove(x int) {
300
300
c := p .ws .cursor
301
301
if ! c .isInPalette {
302
302
c .SetParent (p .pattern )
303
- c .x = c .x - float64 (p .widget .Pos ().X ())
304
- c .y = c .y - float64 (p .widget .Pos ().Y ())
303
+ p .ws .cursor .isInPalette = true
305
304
}
306
305
if ! (c .x == px && c .y == py ) {
307
306
c .xprime = c .x
@@ -312,7 +311,6 @@ func (p *Palette) cursorMove(x int) {
312
311
c .animateMove ()
313
312
}
314
313
315
- p .ws .cursor .isInPalette = true
316
314
p .ws .cursor .update ()
317
315
318
316
p .redrawAllContentInWindows ()
You can’t perform that action at this time.
0 commit comments