File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,13 @@ pub fn regex_prompt(
129
129
let call: job:: Callback = Box :: new (
130
130
move |_editor : & mut Editor , compositor : & mut Compositor | {
131
131
let contents = Text :: new ( format ! ( "{}" , err) ) ;
132
- let mut popup = Popup :: new ( "invalid-regex" , contents) ;
133
132
let size = compositor. size ( ) ;
133
+ let mut popup = Popup :: new ( "invalid-regex" , contents)
134
+ . position ( Some ( helix_core:: Position :: new (
135
+ size. height as usize - 2 , // 2 = statusline + commandline
136
+ 0 ,
137
+ ) ) ) ;
134
138
popup. required_size ( ( size. width , size. height ) ) ;
135
- popup. set_position ( Some ( helix_core:: Position :: new (
136
- size. height as usize - 2 , // 2 = statusline + commandline
137
- 0 ,
138
- ) ) ) ;
139
139
140
140
compositor. replace_or_push ( "invalid-regex" , popup) ;
141
141
} ,
You can’t perform that action at this time.
0 commit comments