replbase 0.0.21__tar.gz → 0.0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {replbase-0.0.21 → replbase-0.0.22}/PKG-INFO +1 -1
- {replbase-0.0.21 → replbase-0.0.22}/pyproject.toml +1 -1
- {replbase-0.0.21 → replbase-0.0.22}/replbase/repl_base.py +4 -1
- {replbase-0.0.21 → replbase-0.0.22}/LICENSE +0 -0
- {replbase-0.0.21 → replbase-0.0.22}/README.md +0 -0
- {replbase-0.0.21 → replbase-0.0.22}/replbase/__init__.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "replbase"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.22"
|
|
8
8
|
description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
|
|
9
9
|
authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
|
|
10
10
|
license = "MIT"
|
|
@@ -431,7 +431,10 @@ class SuggestFromLs(AutoSuggest):
|
|
|
431
431
|
|
|
432
432
|
# Consider only the last line for the suggestion.
|
|
433
433
|
text = document.text.rsplit("\n", 1)[-1]
|
|
434
|
-
|
|
434
|
+
split = text.split(" ", 1)
|
|
435
|
+
if len(split) <= 1:
|
|
436
|
+
return None
|
|
437
|
+
text = split[1]
|
|
435
438
|
if text.strip():
|
|
436
439
|
for item in files:
|
|
437
440
|
if item.lower().startswith(text.lower()):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|