File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,15 @@ impl Object {
283
283
TextObject :: InsideFunction
284
284
} ,
285
285
) ,
286
- Object :: Comment => comment_object ( map, relative_to) ,
286
+ Object :: Comment => text_object (
287
+ map,
288
+ relative_to,
289
+ if around {
290
+ TextObject :: AroundComment
291
+ } else {
292
+ TextObject :: InsideComment
293
+ } ,
294
+ ) ,
287
295
Object :: Class => text_object (
288
296
map,
289
297
relative_to,
@@ -496,16 +504,6 @@ fn around_next_word(
496
504
Some ( start..end)
497
505
}
498
506
499
- fn comment_object (
500
- map : & DisplaySnapshot ,
501
- relative_to : DisplayPoint ,
502
- target : TextObject ,
503
- ) -> Option < Range < DisplayPoint > > {
504
- let snapshot = & map. buffer_snapshot ;
505
- let offset = relative_to. to_offset ( map, Bias :: Left ) ;
506
- snapshot. range_for_syntax_ancestor ( range)
507
- }
508
-
509
507
fn text_object (
510
508
map : & DisplaySnapshot ,
511
509
relative_to : DisplayPoint ,
You can’t perform that action at this time.
0 commit comments