mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Merge pull request #3955 from Carreau/fix-3954
complete on % for magic in notebook
This commit is contained in:
commit
ddca43174d
@ -53,7 +53,12 @@ var IPython = (function (IPython) {
|
||||
tem1 = tem1.substring(0, --s);
|
||||
}
|
||||
if (tem1 == "" || tem2.indexOf(tem1) != 0) {
|
||||
return prepend_n_prc('', min_lead_prct);
|
||||
return {
|
||||
str:prepend_n_prc('', min_lead_prct),
|
||||
type: "computed",
|
||||
from: B[0].from,
|
||||
to: B[0].to
|
||||
}
|
||||
}
|
||||
return {
|
||||
str: prepend_n_prc(tem1, min_lead_prct),
|
||||
@ -102,7 +107,7 @@ var IPython = (function (IPython) {
|
||||
|
||||
// we need to check that we are still on a word boundary
|
||||
// because while typing the completer is still reinvoking itself
|
||||
if (!/[0-9a-z._/\\:~-]/i.test(pre_cursor)) {
|
||||
if (!/[%0-9a-z._/\\:~-]/i.test(pre_cursor)) {
|
||||
this.close();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user