()
| 682 | |
| 683 | // Handle text buffer updates for async operations like image pasting |
| 684 | const handleTextBufferUpdate = () => { |
| 685 | const newText = textBuffer.text; |
| 686 | const newCursor = textBuffer.cursor; |
| 687 | setInputText(newText); |
| 688 | setCursorPosition(newCursor); |
| 689 | updateSlashCommandState(newText, newCursor); |
| 690 | updateFileSearchState(newText, newCursor); |
| 691 | updateBashModeState(newText); |
| 692 | inputHistory.resetNavigation(); |
| 693 | }; |
| 694 | |
| 695 | // State for showing image paste hint |
| 696 | const [_hasImageInClipboard, _setHasImageInClipboard] = useState(false); |
nothing calls this directly
no test coverage detected