summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-14 06:02:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-14 06:02:46 -0700
commiteb05a5de9b195a5fa3d935e39470be203b50332a (patch)
tree9e64339e575e379078f014cb14a756a232ede86c /stream.h
parente63c561a145103a94efbc49e7c6a1061dd8464f4 (diff)
downloadtxr-eb05a5de9b195a5fa3d935e39470be203b50332a.tar.gz
txr-eb05a5de9b195a5fa3d935e39470be203b50332a.tar.bz2
txr-eb05a5de9b195a5fa3d935e39470be203b50332a.zip
bugfix: seek-stream :from-end not working.
* stream.h (enum strm_whence): Fix strm_end and strm_start being duplicate values; strm_end must map to SEEK_END.
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.h b/stream.h
index 27b3ab22..149e9ded 100644
--- a/stream.h
+++ b/stream.h
@@ -28,7 +28,7 @@
enum strm_whence {
strm_start = SEEK_SET,
strm_cur = SEEK_CUR,
- strm_end = SEEK_SET
+ strm_end = SEEK_END
};
enum indent_mode {