rcfile: rename bindable function 'curpos' to 'location'
It is better that the bindable function is named the same as the tag in the help lines, and that it is not an ugly abbreviation.master
parent
2261377309
commit
ee78f2348b
|
@ -1308,8 +1308,10 @@ Cuts all text from the cursor position till the end of the buffer.
|
||||||
Sets the mark at the current position, to start selecting text.
|
Sets the mark at the current position, to start selecting text.
|
||||||
Or, when it is set, unsets the mark.
|
Or, when it is set, unsets the mark.
|
||||||
|
|
||||||
@item curpos
|
@item location
|
||||||
Shows the current cursor position: the line, column, and character positions.
|
Reports the current position of the cursor in the buffer:
|
||||||
|
the line, column, and character positions.
|
||||||
|
(The old name of this function, 'curpos', is deprecated.)
|
||||||
|
|
||||||
@item wordcount
|
@item wordcount
|
||||||
Counts the number of words, lines and characters in the current buffer.
|
Counts the number of words, lines and characters in the current buffer.
|
||||||
|
|
|
@ -612,8 +612,10 @@ Cuts all text from the cursor position till the end of the buffer.
|
||||||
Sets the mark at the current position, to start selecting text.
|
Sets the mark at the current position, to start selecting text.
|
||||||
Or, when it is set, unsets the mark.
|
Or, when it is set, unsets the mark.
|
||||||
.TP
|
.TP
|
||||||
.B curpos
|
.B location
|
||||||
Shows the current cursor position: the line, column, and character positions.
|
Reports the current position of the cursor in the buffer:
|
||||||
|
the line, column, and character positions.
|
||||||
|
(The old name of this function, 'curpos', is deprecated.)
|
||||||
.TP
|
.TP
|
||||||
.B wordcount
|
.B wordcount
|
||||||
Counts the number of words, lines and characters in the current buffer.
|
Counts the number of words, lines and characters in the current buffer.
|
||||||
|
|
|
@ -269,7 +269,7 @@
|
||||||
#bind ^X cut all
|
#bind ^X cut all
|
||||||
#bind ^C copy main
|
#bind ^C copy main
|
||||||
#bind ^V paste all
|
#bind ^V paste all
|
||||||
#bind ^P curpos main
|
#bind ^P location main
|
||||||
#bind ^A mark main
|
#bind ^A mark main
|
||||||
#unbind ^K main
|
#unbind ^K main
|
||||||
#unbind ^U all
|
#unbind ^U all
|
||||||
|
|
|
@ -279,7 +279,8 @@ keystruct *strtosc(const char *input)
|
||||||
else if (!strcmp(input, "formatter"))
|
else if (!strcmp(input, "formatter"))
|
||||||
s->func = do_formatter;
|
s->func = do_formatter;
|
||||||
#endif
|
#endif
|
||||||
else if (!strcmp(input, "curpos"))
|
else if (!strcmp(input, "location") ||
|
||||||
|
!strcmp(input, "curpos")) /* Deprecated; remove in 2022. */
|
||||||
s->func = report_cursor_position;
|
s->func = report_cursor_position;
|
||||||
else if (!strcmp(input, "gotoline"))
|
else if (!strcmp(input, "gotoline"))
|
||||||
s->func = do_gotolinecolumn_void;
|
s->func = do_gotolinecolumn_void;
|
||||||
|
|
Loading…
Reference in New Issue