Skip to content

Guard selection actions on empty panes - #58

Open
dajiaohuang wants to merge 1 commit into
afify:mainfrom
dajiaohuang:fix/empty-pane-selection-actions
Open

dajiaohuang wants to merge 1 commit into
afify:mainfrom
dajiaohuang:fix/empty-pane-selection-actions

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Guard copy and single-entry selection actions when the pane has no entries or its cursor is outside the entry range.
  • Show a warning instead of dereferencing an empty/null entry array.

Validation

  • Task-local C harness generated from the actual changed function bodies reproduced the empty-pane crash before the fix and passed empty-pane and valid-entry cases after it.
  • Harness compiled/ran in C99 with Zig 0.14.1; warning-clean with -Wall -Wextra -Werror -Wno-unused-parameter.
  • git diff --check passed.
  • Full Unix app/UI build not run: no cc or make available; no real filesystem or user directory was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant