set rustyline to check the cursor position (#802), don't add .pl extension to files in loader.pl (#800)

This commit is contained in:
Mark Thom
2021-02-06 13:47:26 -07:00
parent 49b1c1368e
commit 3f950490f9
4 changed files with 14 additions and 8 deletions

View File

@@ -35,7 +35,6 @@ expand_term(Term, ExpandedTerm) :-
; Term = ExpandedTerm
).
term_expansion_list([], ExpandedTerms, ExpandedTerms).
term_expansion_list([Term|Terms], ExpandedTermsHead, ExpandedTermsTail) :-
expand_term(Term, ExpandedTerm0),
@@ -310,9 +309,7 @@ use_module(Module, Exports) :-
load_context_path(Module, Path) :-
( prolog_load_context(directory, CurrentDir) ->
atom_concat(CurrentDir, Path, Module)
; atom_concat(_, '.pl', Module) ->
Module = Path
; atom_concat(Module, '.pl', Path)
; Module = Path
).