Appends closing character/bracket to the completion
(self, completion)
| 1017 | return completion_end in CHARACTER_PAIR_MAP |
| 1018 | |
| 1019 | def append_closing_character(self, completion): |
| 1020 | """Appends closing character/bracket to the completion""" |
| 1021 | completion_end = completion[-1] |
| 1022 | if completion_end in CHARACTER_PAIR_MAP: |
| 1023 | completion = f"{completion}{CHARACTER_PAIR_MAP[completion_end]}" |
| 1024 | return completion |
| 1025 | |
| 1026 | def on_control_d(self): |
| 1027 | if self.current_line == "": |