editor: Fix cursor_shape regression by not setting it to "bar" (#17934)

This fixes the regression introduced here:
https://github.com/zed-industries/zed/pull/17572#issuecomment-2355632615

Essentially: instead of always setting the value when saving settings,
we don't set it by default, but fall back to the default value if it's
not set.

That fixes Vim mode's cursor being overwritten when settings change.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-09-17 15:37:43 +02:00 committed by GitHub
parent 4139a9a758
commit f1d21362fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View file

@ -121,8 +121,8 @@
// 4. A box drawn around the following character
// "hollow"
//
// Default: bar
"cursor_shape": "bar",
// Default: not set, defaults to "bar"
"cursor_shape": null,
// How to highlight the current line in the editor.
//
// 1. Don't highlight the current line: