Commit 4f1516b
committed
fix: improve buffer handling in diff view
Use vim.api.nvim_win_call to properly handle buffer and window context
when enabling and disabling diff mode. This ensures commands are run
in the correct window context rather than affecting the current one,
preventing unexpected side effects.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>1 parent feb421e commit 4f1516b
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
389 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| |||
0 commit comments