diff options
Diffstat (limited to 'frontend/src/components/NewPaste.js')
| -rw-r--r-- | frontend/src/components/NewPaste.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index b276db8..f778a05 100644 --- a/frontend/src/components/NewPaste.js +++ b/frontend/src/components/NewPaste.js @@ -77,8 +77,9 @@ const NewPaste = () => { } } - function insertTab(start, end) { + function insertTab(start, end, callback) { setContent(content.substring(0, start) + ' ' + content.substring(end)) + callback() } function renderPreview() { |