File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ exports.provider = {
51
51
var suggestionText = relativePath ;
52
52
var suggestion = {
53
53
text : suggestionText ,
54
- replacementPrefix : resp . endsInPunctuation ? '' : options . prefix ,
54
+ replacementPrefix : resp . endsInPunctuation ? '' : options . prefix . trim ( ) ,
55
55
rightLabelHTML : '<span>' + file . name + '</span>' ,
56
56
type : 'path'
57
57
} ;
@@ -107,7 +107,7 @@ exports.provider = {
107
107
}
108
108
return {
109
109
text : c . name ,
110
- replacementPrefix : resp . endsInPunctuation ? '' : prefix ,
110
+ replacementPrefix : resp . endsInPunctuation ? '' : prefix . trim ( ) ,
111
111
rightLabel : c . display ,
112
112
leftLabel : c . kind ,
113
113
type : atomUtils . kindToType ( c . kind ) ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export var provider: autocompleteplus.Provider = {
141
141
142
142
var suggestion : autocompleteplus . Suggestion = {
143
143
text : suggestionText ,
144
- replacementPrefix : resp . endsInPunctuation ? '' : options . prefix ,
144
+ replacementPrefix : resp . endsInPunctuation ? '' : options . prefix . trim ( ) ,
145
145
rightLabelHTML : '<span>' + file . name + '</span>' ,
146
146
type : 'path'
147
147
} ;
@@ -215,7 +215,7 @@ export var provider: autocompleteplus.Provider = {
215
215
216
216
return {
217
217
text : c . name ,
218
- replacementPrefix : resp . endsInPunctuation ? '' : prefix ,
218
+ replacementPrefix : resp . endsInPunctuation ? '' : prefix . trim ( ) ,
219
219
rightLabel : c . display ,
220
220
leftLabel : c . kind ,
221
221
type : atomUtils . kindToType ( c . kind ) ,
You can’t perform that action at this time.
0 commit comments