| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 460d7f0 commit 6ab499b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1311,6 +1311,8 @@ def in_paste_mode(self): | |||
| 1311 | 1311 | self.paste_mode = True | |
| 1312 | 1312 | yield | |
| 1313 | 1313 | self.paste_mode = orig_value | |
| 1314 | + if not self.paste_mode: | ||
| 1315 | + self.update_completion() | ||
| 1314 | 1316 | ||
| 1315 | 1317 | # Debugging shims, good example of embedding a Repl in other code | |
| 1316 | 1318 | def dumb_print_output(self): | |
@@ -1375,6 +1377,8 @@ def _set_current_line(self, line, update_completion=True, | |||
| 1375 | 1377 | if self._current_line == line: | |
| 1376 | 1378 | return | |
| 1377 | 1379 | self._current_line = line | |
| 1380 | + if self.paste_mode: | ||
| 1381 | + return | ||
| 1378 | 1382 | if update_completion: | |
| 1379 | 1383 | self.update_completion() | |
| 1380 | 1384 | if reset_rl_history: | |
@@ -1392,6 +1396,10 @@ def _set_cursor_offset(self, offset, update_completion=True, | |||
| 1392 | 1396 | reset_rl_history=False, clear_special_mode=True): | |
| 1393 | 1397 | if self._cursor_offset == offset: | |
| 1394 | 1398 | return | |
| 1399 | + if self.paste_mode: | ||
| 1400 | + self._cursor_offset = offset | ||
| 1401 | + self.unhighlight_paren() | ||
| 1402 | + return | ||
| 1395 | 1403 | if reset_rl_history: | |
| 1396 | 1404 | self.rl_history.reset() | |
| 1397 | 1405 | if clear_special_mode: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments