Swallow space after caret if needed (middle completion)
This commit is contained in:
parent
a918923852
commit
0da6014711
1 changed files with 4 additions and 0 deletions
|
@ -160,6 +160,10 @@ var IrcUtils = {
|
|||
return ret;
|
||||
}
|
||||
beforeCaret = m[1] + newNick + ' ';
|
||||
if (afterCaret[0] == ' ') {
|
||||
// swallow first space after caret if any
|
||||
afterCaret = afterCaret.substring(1);
|
||||
}
|
||||
return {
|
||||
text: beforeCaret + afterCaret,
|
||||
caretPos: beforeCaret.length,
|
||||
|
|
Loading…
Reference in a new issue