Updates by Ben Roberts
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
f1d33d30ce
commit
e10debd14b
|
@ -1,4 +1,7 @@
|
||||||
CVS Code
|
CVS Code
|
||||||
|
- nano.c:
|
||||||
|
do_mouse()
|
||||||
|
- Patch for handling lines w/tabs and mouse better (Ben Roberts).
|
||||||
- winio.c:
|
- winio.c:
|
||||||
total_refresh()
|
total_refresh()
|
||||||
- Added edit_refresh() call to actually update the screen if messy.
|
- Added edit_refresh() call to actually update the screen if messy.
|
||||||
|
@ -9,6 +12,8 @@ CVS Code
|
||||||
search_abort()
|
search_abort()
|
||||||
- Now calls edit_refresh_clearok when MARK_ISSET to handle screen
|
- Now calls edit_refresh_clearok when MARK_ISSET to handle screen
|
||||||
ugliness bug (reported by Ken Tyler).
|
ugliness bug (reported by Ken Tyler).
|
||||||
|
findnextstr():
|
||||||
|
- Added reset for placewewant (Ben Roberts).
|
||||||
|
|
||||||
nano-0.9.16 - 08/09/2000
|
nano-0.9.16 - 08/09/2000
|
||||||
- cut.c:
|
- cut.c:
|
||||||
|
|
18
nano.c
18
nano.c
|
@ -1155,6 +1155,7 @@ int do_exit(void)
|
||||||
void do_mouse(void)
|
void do_mouse(void)
|
||||||
{
|
{
|
||||||
MEVENT mevent;
|
MEVENT mevent;
|
||||||
|
int foo = 0, tab_found = 0;
|
||||||
|
|
||||||
if (getmouse(&mevent) == ERR)
|
if (getmouse(&mevent) == ERR)
|
||||||
return;
|
return;
|
||||||
|
@ -1197,6 +1198,23 @@ void do_mouse(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
current_x = mevent.x;
|
current_x = mevent.x;
|
||||||
|
placewewant = current_x;
|
||||||
|
while(foo < current_x) {
|
||||||
|
if(current->data[foo] == NANO_CONTROL_I) {
|
||||||
|
current_x -= tabsize - (foo % tabsize);
|
||||||
|
tab_found = 1;
|
||||||
|
} else if(current->data[foo] & 0x80)
|
||||||
|
;
|
||||||
|
else if(current->data[foo] < 32)
|
||||||
|
current_x--;
|
||||||
|
foo++;
|
||||||
|
}
|
||||||
|
/* This is where tab_found comes in. I can't figure out why,
|
||||||
|
* but without it any line with a tab will place the cursor
|
||||||
|
* one character behind. Whatever, this fixes it. */
|
||||||
|
if(tab_found == 1)
|
||||||
|
current_x++;
|
||||||
|
|
||||||
if (current_x > strlen(current->data))
|
if (current_x > strlen(current->data))
|
||||||
current_x = strlen(current->data);
|
current_x = strlen(current->data);
|
||||||
|
|
||||||
|
|
48
po/nano.pot
48
po/nano.pot
|
@ -6,7 +6,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 2000-08-18 23:52-0400\n"
|
"POT-Creation-Date: 2000-08-21 21:18-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -32,7 +32,7 @@ msgstr ""
|
||||||
msgid "Read %d lines"
|
msgid "Read %d lines"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: files.c:217 search.c:173 search.c:191
|
#: files.c:217 search.c:174 search.c:192
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "\"%s\" not found"
|
msgid "\"%s\" not found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -613,48 +613,48 @@ msgstr ""
|
||||||
msgid "Save modified buffer (ANSWERING \"No\" WILL DESTROY CHANGES) ? "
|
msgid "Save modified buffer (ANSWERING \"No\" WILL DESTROY CHANGES) ? "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1257
|
#: nano.c:1275
|
||||||
msgid "Cannot resize top win"
|
msgid "Cannot resize top win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1259
|
#: nano.c:1277
|
||||||
msgid "Cannot move top win"
|
msgid "Cannot move top win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1261
|
#: nano.c:1279
|
||||||
msgid "Cannot resize edit win"
|
msgid "Cannot resize edit win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1263
|
#: nano.c:1281
|
||||||
msgid "Cannot move edit win"
|
msgid "Cannot move edit win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1265
|
#: nano.c:1283
|
||||||
msgid "Cannot resize bottom win"
|
msgid "Cannot resize bottom win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1267
|
#: nano.c:1285
|
||||||
msgid "Cannot move bottom win"
|
msgid "Cannot move bottom win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1733
|
#: nano.c:1751
|
||||||
msgid "Main: set up windows\n"
|
msgid "Main: set up windows\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1755
|
#: nano.c:1773
|
||||||
msgid "Main: bottom win\n"
|
msgid "Main: bottom win\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1761
|
#: nano.c:1779
|
||||||
msgid "Main: open file\n"
|
msgid "Main: open file\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1829
|
#: nano.c:1847
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-[-%c! (%d)\n"
|
msgid "I got Alt-[-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1845
|
#: nano.c:1863
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-%c! (%d)\n"
|
msgid "I got Alt-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -687,51 +687,51 @@ msgstr ""
|
||||||
msgid "Search Cancelled"
|
msgid "Search Cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:187
|
#: search.c:188
|
||||||
msgid "Search Wrapped"
|
msgid "Search Wrapped"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:243
|
#: search.c:244
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Replaced %d occurences"
|
msgid "Replaced %d occurences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:245
|
#: search.c:246
|
||||||
msgid "Replaced 1 occurence"
|
msgid "Replaced 1 occurence"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:380 search.c:401 search.c:424
|
#: search.c:381 search.c:402 search.c:425
|
||||||
msgid "Replace Cancelled"
|
msgid "Replace Cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:397
|
#: search.c:398
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Replace with [%s]"
|
msgid "Replace with [%s]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. last_search is empty
|
#. last_search is empty
|
||||||
#: search.c:422
|
#: search.c:423
|
||||||
msgid "Replace with"
|
msgid "Replace with"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:463
|
#: search.c:464
|
||||||
msgid "Replace this instance?"
|
msgid "Replace this instance?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Ask for it
|
#. Ask for it
|
||||||
#: search.c:514
|
#: search.c:515
|
||||||
msgid "Enter line number"
|
msgid "Enter line number"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:516
|
#: search.c:517
|
||||||
msgid "Aborted"
|
msgid "Aborted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:536
|
#: search.c:537
|
||||||
msgid "Come on, be reasonable"
|
msgid "Come on, be reasonable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.c:541
|
#: search.c:542
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Only %d lines available, skipping to last line"
|
msgid "Only %d lines available, skipping to last line"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
1
search.c
1
search.c
|
@ -159,6 +159,7 @@ filestruct *findnextstr(int quiet, filestruct * begin, char *needle)
|
||||||
|
|
||||||
if (past_editbot)
|
if (past_editbot)
|
||||||
edit_update(current, CENTER);
|
edit_update(current, CENTER);
|
||||||
|
placewewant = xplustabs();
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
} else { /* We're at EOF, go back to the top, once */
|
} else { /* We're at EOF, go back to the top, once */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue