Conversation
Greptile SummaryThis PR fixes a one-line bug in Key changes:
Confidence Score: 5/5This PR is safe to merge — it is a minimal, targeted one-line fix that aligns The change is a single-line fix with clear motivation: No files require special attention. The change is isolated to a single return statement in Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["read-line called"] --> B{"Port type?"}
B -->|stdin| C["stdin_read_line()"]
B -->|file| D["file_read_line()"]
B -->|string| E["string_read_line()"]
C --> F["fgets(buf, size, stdin)"]
F -->|"returns non-NULL"| G["return s7_make_string(buf)"]
F -->|"returns NULL (Ctrl+D / EOF)"| H["return eof_object ✅\n(previously: nil_string ❌)"]
D --> I["fgets(buf, size, file)"]
I -->|"returns non-NULL"| J["parse until newline,\nreturn string"]
I -->|"returns NULL (EOF/error)"| K["return eof_object"]
style H fill:#d4edda,stroke:#28a745
Reviews (1): Last reviewed commit: "[200_22] 修复read-line无法检测到Ctrl+D的问题" | Re-trigger Greptile |
No description provided.