Commit 1cc93d9
[vim bindings] Check if cm.save() is available before saving
cm.save() might not exist if CodeMirror is not created from a
textarea. This adds an additional check to prevent TypeErrors.1 parent 65964cf commit 1cc93d9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4515 | 4515 | | |
4516 | 4516 | | |
4517 | 4517 | | |
4518 | | - | |
4519 | | - | |
| 4518 | + | |
| 4519 | + | |
4520 | 4520 | | |
4521 | 4521 | | |
4522 | 4522 | | |
| |||
0 commit comments