summaryrefslogtreecommitdiffstats
path: root/pgcli/filters.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgcli/filters.py')
-rw-r--r--pgcli/filters.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/pgcli/filters.py b/pgcli/filters.py
deleted file mode 100644
index e560194a..00000000
--- a/pgcli/filters.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from prompt_toolkit.filters import Filter
-
-
-class HasSelectedCompletion(Filter):
- """Enable when the current buffer has a selected completion."""
-
- def __call__(self, cli):
- complete_state = cli.current_buffer.complete_state
- return (complete_state is not None and
- complete_state.current_completion is not None)
-
- def __repr__(self):
- return "HasSelectedCompletion()"