refactor(insert): rename edit.c => insert.c #40705

Problem:
- `edit.c` is an unnecessarily misleading and less-discoverable name
  than `insert.c`.
- Numerous insert-mode related things are named with a `ins_` prefix.
- There is already a `insexpand.c` module...

Solution:
Rename `edit.c` => `insert.c`.
This commit is contained in:
Justin M. Keyes
2026-07-12 11:57:17 -04:00
committed by GitHub
parent c1e09659b4
commit 81c4c295ac
31 changed files with 40 additions and 36 deletions

View File

@@ -283,6 +283,10 @@ preprocess_patch() {
LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/getchar\.c/\1\/input.c/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
# Rename edit.c to insert.c
LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/edit\.c/\1\/insert.c/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
# Rename profiler.c to profile.c
LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/profiler\.c/\1\/profile.c/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"