summaryrefslogtreecommitdiff
path: root/src/mark.c
Commit message (Collapse)AuthorAgeFilesLines
* Using 'https' instead of 'http'Alexander Naumov2019-11-091-1/+1
|
* get rid of (sometype *)0 castsAmadeusz Sławiński2018-04-071-4/+4
| | | | using NULL makes it clear enough what's going on
* use NULL instead of 0 where applicableAmadeusz Sławiński2018-04-061-9/+9
| | | | | found with sparse warning: Using plain integer as NULL pointer
* fix non-ANSI function declarationsAmadeusz Sławiński2018-04-061-3/+3
| | | | | as per sparse warnings: warning: non-ANSI function declaration of function '...'
* get rid of fontxAmadeusz Sławiński2018-03-031-6/+2
| | | | | in UTF8 encodings it was used to store part of character (c << 16), but now that character is ensured to be 32 bits, it's not needed
* refactor use of sizeofAmadeusz Sławiński2017-07-091-1/+1
| | | | | | | introduce ARRAY_SIZE, like in Linux kernel use explicit structs, if not using arrays Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* type cleanupsAmadeusz Sławiński2017-07-091-6/+6
| | | | Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* begin viewing scrollback buffer at the first line of output instead of at ↵Guo Ci2017-06-211-3/+5
| | | | | | | | | | | | | | | | | | | | | | the start of the scrollback buffer This issue has been discussed before: https://bbs.archlinux.org/viewtopic.php?id=108640 Copy mode and “hardcopy -h” always begin at the start of the scrollback buffer. If a user sets a large scrollback limit with little output, then copy mode and the file written by “hardcopy -h” will begin with many blank lines before the first line of output. The attached patch limits the scrollback buffer traversal to begin at the first line of output, instead of the beginning of the scrollback buffer. Also, code for moving to %age of buffer is changed to use float division so that two different rep_cnt will not jump to the same location, except for buffers less than 100 lines. Previously, the computed line number is rounded down to the nearest 100th due to integer division. Bug: 49377
* make MakePaster len arg size_tAmadeusz Sławiński2017-02-151-1/+1
|
* u_plop, int len -> size_t lenAmadeusz Sławiński2017-01-221-1/+1
|
* Remove unnecessary decrement of rep_cntGuo Ci2016-10-161-1/+0
| | | | | | | Currently, 0% and 1% points to the same location in the scrollback buffer due to this bug. Bug: 49336
* use enums instead of hardcoded valuesAmadeusz Sławiński2016-07-241-2/+3
|
* move config.h to top of includesAmadeusz Sławiński2016-06-181-1/+2
| | | | | now that _GNU_SOURCE definition is in config.h we want to make sure that all headers that are included know about it
* make all header files self-contained and include it in the source fileSimon Ruderich2016-02-071-1/+2
| | | | | | | | Including the header in the source file guarantees matching signatures, thus preventing subtle errors. Self-contained headers document the required headers and makes using it easier to use the header in new source files.
* more type conversions to boolAmadeusz Sławiński2015-12-061-4/+3
|
* constify LayFuncsAmadeusz Sławiński2015-09-021-1/+1
|
* int -> size_t for size typesAmadeusz Sławiński2015-09-021-2/+2
|
* Dead assignmentAmadeusz Sławiński2015-07-021-2/+2
| | | | | | clang analyzer Value stored to 'rep_cnt' is never read
* remove register keywordAmadeusz Sławiński2015-06-261-5/+5
| | | | modern compilers know better what they are doing
* get rid of extern.hAmadeusz Sławiński2015-06-261-1/+0
|
* move global variables declarations to corresponding headersAmadeusz Sławiński2015-06-261-0/+2
|
* use system stuff, use boolAmadeusz Sławiński2015-06-251-11/+10
|
* more header stuffAmadeusz Sławiński2015-06-251-1/+6
| | | | | | | move forward declarations of functions from extern.h to their own header files fix inclusion option passed in Makefile cosmetic stuff on some structs
* Remove *Rewrite, they mostly return EXPENSIVE anywayAmadeusz Sławiński2015-06-251-66/+0
|
* bye bye DEBUGAmadeusz Sławiński2015-06-251-22/+0
|
* change struct mchar to use uint32_t instead of charsAmadeusz Sławiński2015-06-251-8/+8
|
* Code reformatingAmadeusz Sławiński2015-06-251-1271/+1161
| | | | Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* xrealloc returns void* and remove all *allocs castsAmadeusz Sławiński2015-06-251-1/+1
|
* Simplify debugging macrosAmadeusz Sławiński2015-06-251-11/+11
|
* trailing whitespace removalAmadeusz Sławiński2015-06-251-5/+5
|
* move extern's into one placeAmadeusz Sławiński (amade)2015-06-251-6/+0
|
* replace some of strcpy with strncpyAmadeusz Sławiński (amade)2015-06-251-1/+1
| | | | Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* replace bcopy with memmoveAmadeusz Sławiński (amade)2015-06-251-1/+1
|
* make most features as always built in from now onAmadeusz Sławiński (amade)2015-06-251-44/+0
| | | | | | removed #define SIMPLESCREEN and it's #defines also removed #define DETACH and RXVT_SOC all of this options are now default
* rewrite functions definitionsAmadeusz Sławiński (amade)2015-06-251-38/+16
|
* remove __P macro it's obsoleteAmadeusz Sławiński2015-06-251-13/+13
| | | | inspired by https://github.com/wrp/wscreen/commit/a434e5d6126a8160b91118db32010476998e05d3
* Support non-BMP utf8 charactersMichael Schroeder2013-04-091-6/+17
|
* Fix various issues (compile warnings etc.)Amadeusz Sławiński2012-01-271-0/+1
| | | | | | | | | The fixes include: * Add missing return values for some functions, * Initialize some variables * Fix data declaration to match struct's definition * Appropriate casting where needed * Forward declaration for some functions
* Spelling fix: usefull --> useful.jesstess-docsJessica McKellar2010-11-101-1/+1
| | | | | | Thank you Curtis Brown for the patch. This resolves bug #27052.
* Some more fixes for the list management.Sadrul Habib Chowdhury2010-02-261-1/+2
| | | | | Make sure the allocated memory is always freed. Also, do not reference freed memory. Thank you valgrind.
* Fix cursor positioning after a search in copy modeSadrul Habib Chowdhury2009-12-171-0/+4
| | | | | | | | The problem would show up with splits (both vertical and horizontal), because the layer wouldn't remember the position the cursor was moved to, and when screen refreshes the regions (if there's more than one), it takes the cursor to the old position. The fix is to simply remember the cursor position in the layer.
* Allow adding visual notification in caption string.Sadrul Habib Chowdhury2009-12-151-0/+2
| | | | | | | | | '%P' in caption string will set '%?' to true if the current region is in copy/paste mode. So, if you want to simply change the color etc. of your caption, prepend '%?%P%{XXX}%?' to your caption and you're set ('XXX' stands for the usual attribute/color modifier). If, on the other hand, you want to change the caption string in copy mode, change your caption string to '%?%PCaption for copy mode%:Your usual caption%?'.
* Mouse clicks to place a mark in copy-mode.Sadrul Habib Chowdhury2009-12-061-12/+49
| | | | | With mousetrack on, it's now possible to leave a mark using a left-click in copy mode, or scroll using the scroll wheel.
* Revamp the display list.Sadrul Habib Chowdhury2009-12-051-10/+3
| | | | | | Revamp the display list (in works). The future changes are expected to add full mouse control, and perhaps some other utility functions (e.g. detaching a display, changing permissions perhaps? etc.)
* Re-indent some code, and reduce code-duplication.Sadrul Habib Chowdhury2009-09-231-38/+28
|
* Copyright for 2009Sadrul Habib Chowdhury2009-02-071-1/+1
|
* Update copyright messages some more.Sadrul Habib Chowdhury2008-10-211-1/+6
|
* Start converting to GPL v3+ (ref: ticket #23900)Sadrul Habib Chowdhury2008-10-131-4/+4
| | | | I decided to leave the doc/ directory alone for the moment.
* Get rid of a bunch of compile warningsSadrul Habib Chowdhury2008-08-081-1/+2
|
* Prevent crashing from ;, in copy mode without fFtTSadrul Habib Chowdhury2008-08-071-2/+5
| | | | | Make sure there is some search to repeat when ;, is pressed in copy mode.