diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-01-12 00:45:12 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-01-12 00:45:12 -0800 |
commit | 5ddaf8f653df98752ca67b8bfec9b8adfcf168b1 (patch) | |
tree | 805b0462a9dc653842c06b485a55b5fd18259ceb | |
parent | dae5bb7174959aa50ee65b5992bae3d4fce8da18 (diff) |
Use the default buffer instead of current_buffer.
-rw-r--r-- | pgcli/pgtoolbar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pgcli/pgtoolbar.py b/pgcli/pgtoolbar.py index 400e314e..e1e676dd 100644 --- a/pgcli/pgtoolbar.py +++ b/pgcli/pgtoolbar.py @@ -10,17 +10,17 @@ class PGToolbar(Toolbar): def get_tokens(self, cli, width): result = TokenList() result.append((self.token, ' ')) - if cli.current_buffer.completer.smart_completion: + if cli.buffers['default'].completer.smart_completion: result.append((self.token.On, '[F2] Smart Completion: ON ')) else: result.append((self.token.Off, '[F2] Smart Completion: OFF ')) - if cli.current_buffer.always_multiline: + if cli.buffers['default'].always_multiline: result.append((self.token.On, '[F3] Multiline: ON')) else: result.append((self.token.Off, '[F3] Multiline: OFF')) - if cli.current_buffer.always_multiline: + if cli.buffers['default'].always_multiline: result.append((self.token, ' (Semi-colon [;] will end the line)')) |