mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 23:33:39 -05:00
Fix Linux build (#756)
This commit is contained in:
@@ -17,6 +17,10 @@ FILE* c_tty() {
|
|||||||
SCREEN* c_newterm(FILE* tty) {
|
SCREEN* c_newterm(FILE* tty) {
|
||||||
return newterm(NULL, stderr, tty);
|
return newterm(NULL, stderr, tty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int c_getcurx(WINDOW* win) {
|
||||||
|
return getcurx(win);
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
@@ -274,7 +278,7 @@ func (w *Window) Erase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *Window) X() int {
|
func (w *Window) X() int {
|
||||||
return int(C.getcurx(w.win()))
|
return int(C.c_getcurx(w.win()))
|
||||||
}
|
}
|
||||||
|
|
||||||
func DoesAutoWrap() bool {
|
func DoesAutoWrap() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user